Commit graph

15 commits

Author SHA1 Message Date
lhywk
cbd08d5702 Add NULL check after hydra_receive_line() in start_redis() 2025-07-03 05:07:27 +00:00
van Hauser
720bdb3f96 code indent 2020-02-01 11:47:13 +01:00
David Maciejak
7009b6db03 Fix json output in case of connection error to the server 2019-06-14 13:44:16 +08:00
David Maciejak
87a6e9385e Cosmetic change to please code scanner 2019-06-02 11:21:54 +08:00
raynull
bd70ea79c2
Update hydra-redis.c 2019-05-28 12:52:27 +03:00
David Maciejak
e759b3768c
Fix compilation warning
hydra-redis.c: In function ‘start_redis’:
hydra-redis.c:18:51: warning: ‘%.250s’ directive writing up to 250 bytes into a region of size between 243 and 493 [-Wformat-overflow=]
   sprintf(buffer, "*2\r\n$4\r\nAUTH\r\n$%.250s\r\n%.250s\r\n", pass_num, pass);
                                                   ^~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from hydra.h:3,
                 from hydra-mod.h:4,
                 from hydra-redis.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 20 and 520 bytes into a destination of size 510
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-03-03 23:24:09 +08:00
van Hauser
f124c26fc6 big int to stdint switch 2017-07-05 08:48:00 +02:00
Diadlo
a01712370b
Remove useless sock check in init functions
'sock' inited with -1 a few lines above, so condition is alwais false
2017-06-11 18:28:18 +03:00
Petar Kaleychev
093f172ee3 Update hydra-redis.c 2016-10-11 21:31:56 +03:00
Petar Kaleychev
3658f3a6ad Update hydra-redis.c 2016-10-11 21:28:24 +03:00
van Hauser
1579369097 SSL SNI support; important http-*:// fix; also http-post support added 2016-06-15 19:53:36 +02:00
Petar Kaleychev
fc889f6397 service_redis_init support of old redis < 3.0 (issue #105)
This is a fix for the cases of old redis versions.
2016-03-29 10:30:29 +03:00
Jack Reacher
554d66c768 Switched usleep to nanosleep for posix complience 2016-02-06 02:16:01 -05:00
van Hauser
08fedd8583 added redis initial service test 2015-04-21 10:59:34 +02:00
U-marc-win4\marc
6a94f708e8 initial commit 2014-04-24 16:49:18 +02:00