From ee2e2e6025a72a7e584183b35bc34108590dbb3b Mon Sep 17 00:00:00 2001 From: Niklas Hofmann Date: Sat, 9 Aug 2014 11:50:31 +0200 Subject: [PATCH] ADD EDGE fixed --- src/protocol_edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_edge.c b/src/protocol_edge.c index 0626cda9..1baa0387 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -62,7 +62,7 @@ bool add_edge_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { int weight; if(sscanf(request, "%*d %*x "MAX_STRING" %d "MAX_STRING" "MAX_STRING" "MAX_STRING" %d %x %d", - from_name, &from_dclass, to_name, to_address, to_port, &to_dclass, &options, &weight) != 6) { + from_name, &from_dclass, to_name, to_address, to_port, &to_dclass, &options, &weight) != 8) { logger(mesh, MESHLINK_ERROR, "Got bad %s from %s (%s)", "ADD_EDGE", c->name, c->hostname); return false; -- 2.39.5