X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Froute.c;h=91bd2f8227e158539e5798c6aaef535170f58f5c;hp=f7a728dc80278cac5ed62f2912f6b163428a534c;hb=ec02aca3d7888f072c5c0d52ba6b5c37ed42b69e;hpb=1f9c1231139d2a93ef4ace9891013d2c23cdf4ae diff --git a/src/route.c b/src/route.c index f7a728dc..91bd2f82 100644 --- a/src/route.c +++ b/src/route.c @@ -45,14 +45,14 @@ void route(meshlink_handle_t *mesh, node_t *source, vpn_packet_t *packet) { owner = lookup_node(mesh, (char *)hdr->destination); logger(mesh, MESHLINK_DEBUG, "Routing packet from \"%s\" to \"%s\"\n", hdr->source, hdr->destination); - //Check Lenght + //Check Length if(!checklength(source, packet, sizeof(*hdr))) { return; } if(owner == NULL) { //Lookup failed - logger(mesh, MESHLINK_WARNING, "Cant lookup the owner of a packet in the route() function. This should never happen!\n"); + logger(mesh, MESHLINK_WARNING, "Can't lookup the owner of a packet in the route() function. This should never happen!\n"); logger(mesh, MESHLINK_WARNING, "Destination was: %s\n", hdr->destination); return; }