]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
initialize buffer before sending.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 17 Jan 2013 19:08:11 +0000 (20:08 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 17 Jan 2013 19:08:11 +0000 (20:08 +0100)
tests/mini-dtls-record.c

index 0dce462da7f86d305354368fad48c6c41ddf352f..0d41bea21c6bcf83b56da81743b3f30cfb8395f0 100644 (file)
@@ -180,6 +180,8 @@ client (int fd)
     unsigned current = 0;
     struct timespec ts;
     
+    memset(buffer, 0, sizeof(buffer));
+    
     ts.tv_sec = 0;
     ts.tv_nsec = 100*1000*1000;
     /* Need to enable anonymous KX specifically. */