|
|
|
@ -13,12 +13,12 @@ struct pn_struct* pkt_normalizer_init(uasync_t* ua, int is_packer, int mtu) { |
|
|
|
struct pn_struct* pn = malloc(sizeof(struct pn_struct)); |
|
|
|
struct pn_struct* pn = malloc(sizeof(struct pn_struct)); |
|
|
|
if (!pn) return NULL; |
|
|
|
if (!pn) return NULL; |
|
|
|
pn->ua = ua; |
|
|
|
pn->ua = ua; |
|
|
|
pn->input = queue_new(ua); |
|
|
|
pn->input = queue_new(ua, NULL); // No memory pool for now
|
|
|
|
if (!pn->input) { |
|
|
|
if (!pn->input) { |
|
|
|
free(pn); |
|
|
|
free(pn); |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
pn->output = queue_new(ua); |
|
|
|
pn->output = queue_new(ua, NULL); // No memory pool for now
|
|
|
|
if (!pn->output) { |
|
|
|
if (!pn->output) { |
|
|
|
queue_free(pn->input); |
|
|
|
queue_free(pn->input); |
|
|
|
free(pn); |
|
|
|
free(pn); |
|
|
|
|