mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
radmin2: cast calloc output (found by ccc-analyzer).
This commit is contained in:
parent
82be691b9d
commit
8c42e0007b
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ char *message2buffer(struct rmessage *msg) {
|
|||
|
||||
switch(msg->type) {
|
||||
case 0x1b: //Challenge request
|
||||
data = calloc (10, sizeof(unsigned char));
|
||||
data = (char *)calloc (10, sizeof(char));
|
||||
if(data == NULL) {
|
||||
hydra_report(stderr, "calloc failure\n");
|
||||
hydra_child_exit(0);
|
||||
|
@ -97,7 +97,7 @@ char *message2buffer(struct rmessage *msg) {
|
|||
memcpy((data+9), &msg->type, sizeof(char));
|
||||
break;
|
||||
case 0x09:
|
||||
data = calloc (42, sizeof(unsigned char));
|
||||
data = (char *)calloc (42, sizeof(char));
|
||||
if(data == NULL) {
|
||||
hydra_report(stderr, "calloc failure\n");
|
||||
hydra_child_exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue