X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_packet.c;h=953887a53d3eed52c741c76712fb7ccffb42f263;hb=529b8fab8c21e7ae5af91d742ff202eab38e51f3;hp=a2709553fb9893f555d548cc57a8c62372730289;hpb=ffda069e617db34c12321b438964e4c369053466;p=meshlink diff --git a/src/net_packet.c b/src/net_packet.c index a2709553..953887a5 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -256,7 +256,9 @@ static void receive_udppacket(meshlink_handle_t *mesh, node_t *n, vpn_packet_t * return; } - sptps_receive_data(&n->sptps, inpkt->data, inpkt->len); + if(!sptps_receive_data(&n->sptps, inpkt->data, inpkt->len)) { + logger(mesh, MESHLINK_ERROR, "Could not process SPTPS data from %s: %s", n->name, strerror(errno)); + } } static void send_sptps_packet(meshlink_handle_t *mesh, node_t *n, vpn_packet_t *origpkt) {