about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-01-23 12:30:33 +0000
committerLaurent Bercot <ska@appnovation.com>2023-01-23 12:30:33 +0000
commit5b286399039d00d4f7db302ba00dda79d60733d2 (patch)
tree2861196c500ad2daefd8434998fd087e0b27ddea /src
parentda14caa07adc11dd72e9568cb29e5342105cc371 (diff)
downloads6-networking-5b286399039d00d4f7db302ba00dda79d60733d2.tar.gz
s6-networking-5b286399039d00d4f7db302ba00dda79d60733d2.tar.xz
s6-networking-5b286399039d00d4f7db302ba00dda79d60733d2.zip
bugfix: s6net_ident_reply_get uninitialized variable
 Thanks hurufu.

Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/libs6net/s6net_ident_reply_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6net/s6net_ident_reply_get.c b/src/libs6net/s6net_ident_reply_get.c
index 9093700..3f1ab41 100644
--- a/src/libs6net/s6net_ident_reply_get.c
+++ b/src/libs6net/s6net_ident_reply_get.c
@@ -14,7 +14,7 @@
 
 ssize_t s6net_ident_reply_get (char *s, ip46 const *remoteip, uint16_t remoteport, ip46 const *localip, uint16_t localport, tain const *deadline, tain *stamp)
 {
-  size_t len ;
+  size_t len = 0 ;
   int fd ;
   if (ip46_is6(remoteip) != ip46_is6(localip)) return (errno = EAFNOSUPPORT, -1) ;
   fd = socket_tcp46(ip46_is6(remoteip)) ;