/* Discard the rest of the message. */
if (rpcap_discard(pr->rmt_sockctrl, plen, p->errbuf) == -1)
- goto error;
+ goto error_nodiscard;
return ps;
*/
(void)rpcap_discard(pr->rmt_sockctrl, plen, NULL);
+error_nodiscard:
return NULL;
}
/* Discard the rest of the message. */
if (rpcap_discard(pr->rmt_sockctrl, plen, fp->errbuf) == -1)
- goto error;
+ goto error_nodiscard;
/*
* In case the user does not want to capture RPCAP packets, let's update the filter
/* Discard the rest of the message. */
if (rpcap_discard(sockctrl, plen, errbuf) == 1)
- return -1;
+ goto error_nodiscard;
/* Control connection has to be closed only in case the remote machine is in passive mode */
if (!active)