|
|
|
@ -1359,9 +1359,9 @@ int cli_ac_scanbuff(const unsigned char *buffer, uint32_t length, const char **v |
|
|
|
|
if(res) { |
|
|
|
|
newres = (struct cli_ac_result *) malloc(sizeof(struct cli_ac_result)); |
|
|
|
|
if(!newres) { |
|
|
|
|
cli_errmsg("cli_ac_scanbuff: Can't allocate memory for newres %lu\n", sizeof(struct cli_ac_result)); |
|
|
|
|
cli_errmsg("cli_ac_scanbuff: Can't allocate memory for newres %lu\n", (unsigned long)sizeof(struct cli_ac_result)); |
|
|
|
|
return CL_EMEM; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
newres->virname = pt->virname; |
|
|
|
|
newres->customdata = pt->customdata; |
|
|
|
|
newres->next = *res; |
|
|
|
@ -1412,9 +1412,9 @@ int cli_ac_scanbuff(const unsigned char *buffer, uint32_t length, const char **v |
|
|
|
|
if(res) { |
|
|
|
|
newres = (struct cli_ac_result *) malloc(sizeof(struct cli_ac_result)); |
|
|
|
|
if(!newres) { |
|
|
|
|
cli_errmsg("cli_ac_scanbuff: Can't allocate memory for newres %lu\n", sizeof(struct cli_ac_result)); |
|
|
|
|
return CL_EMEM; |
|
|
|
|
} |
|
|
|
|
cli_errmsg("cli_ac_scanbuff: Can't allocate memory for newres %lu\n", (unsigned long)sizeof(struct cli_ac_result)); |
|
|
|
|
return CL_EMEM; |
|
|
|
|
} |
|
|
|
|
newres->virname = pt->virname; |
|
|
|
|
newres->customdata = pt->customdata; |
|
|
|
|
newres->offset = realoff; |
|
|
|
|