diff --git a/Makefile b/Makefile index 67e6771a..83e8f834 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifeq ($m, 64) ARCH = -m64 endif -CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 +CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wno-array-bounds -fcommon LDFLAGS = $(ARCH) -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto LIB = ${OBJ}/lib diff --git a/net/net-tcp-rpc-client.c b/net/net-tcp-rpc-client.c index bae0d7dc..a2f4741b 100644 --- a/net/net-tcp-rpc-client.c +++ b/net/net-tcp-rpc-client.c @@ -616,6 +616,7 @@ int tcp_rpcc_init_crypto (connection_job_t C) { struct tcp_rpc_nonce_ext_packet x; struct tcp_rpc_nonce_dh_packet dh; } buf; + int len = sizeof (struct tcp_rpc_nonce_packet); memset (&buf, 0, sizeof (buf));