diff options
Diffstat (limited to 'src/socket_wrapper.c')
| -rw-r--r-- | src/socket_wrapper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index c5b94fb..9aafa93 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -1463,7 +1463,10 @@ static uint8_t *swrap_packet_init(struct timeval *tval, } base = (uint8_t *)malloc(alloc_len); - if (!base) return NULL; + if (base == NULL) { + return NULL; + } + memset(base, 0x0, alloc_len); buf = base; |
