diff --git a/src/protocol_edge.c b/src/protocol_edge.c index d9475c3d..661f0b37 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -70,10 +70,13 @@ bool add_edge_h(connection_t *c, const char *request) { char to_port[MAX_STRING_SIZE]; char address_local[MAX_STRING_SIZE]; char port_local[MAX_STRING_SIZE]; - sockaddr_t address, local_address = {{0}}; + sockaddr_t address, local_address; uint32_t options; int weight; + memset(&address, 0x0, sizeof(sockaddr_t)); + memset(&local_address, 0x0, sizeof(sockaddr_t)); + int parameter_count = sscanf(request, "%*d %*x "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" %x %d "MAX_STRING" "MAX_STRING, from_name, to_name, to_address, to_port, &options, &weight, address_local, port_local); if (parameter_count != 6 && parameter_count != 8) {