version 1.1.2.3, 2011/08/31 13:23:25
|
version 1.1.2.4, 2011/08/31 16:51:21
|
Line 203 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
Line 203 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
} else |
} else |
Limit += AIT_LEN(val); |
Limit += AIT_LEN(val); |
|
|
if (!zcpy) | if (!zcpy) { |
memcpy(val->val.buffer, data, AIT_LEN(val)); | val->val.buffer = malloc(AIT_LEN(val)); |
else | if (!val->val.buffer) { |
| LOGERR; |
| io_arrayFree(vars); |
| io_arrayDestroy(&vars); |
| return NULL; |
| } else |
| memcpy(val->val.buffer, data, AIT_LEN(val)); |
| } else |
val->val.buffer = data; |
val->val.buffer = data; |
data += AIT_LEN(val); |
data += AIT_LEN(val); |
break; |
break; |