incoming: Remove a few unnecessary initializations

This commit is contained in:
Heikki Hannikainen 2022-10-31 18:05:01 +02:00
parent 43dd2bf16e
commit 2b40f84b77
1 changed files with 2 additions and 3 deletions

View File

@ -965,14 +965,13 @@ int incoming_parse(struct worker_t *self, struct client_t *c, char *s, int len)
return INERR_LONG_PACKET;
}
/* get a new packet buffer of the correct size; it is zeroed by pbuf_get. */
pb = pbuf_get(self, new_len);
if (!pb) {
// This should never happen... LOG_CRIT error logged in pbuf_get()
//hlog(LOG_DEBUG, "pbuf_get failed to get packet buffer");
return INERR_OUT_OF_PBUFS; // No room :-(
}
pb->next = NULL; // OPTIMIZE: pbuf arrives pre-zeroed, this could be removed maybe?
pb->flags = 0;
/* store the source reference */
pb->origin = c;