]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / src / net_packet.c
index a2709553fb9893f555d548cc57a8c62372730289..953887a53d3eed52c741c76712fb7ccffb42f263 100644 (file)
@@ -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) {