gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36507 - gnunet/src/hello


From: gnunet
Subject: [GNUnet-SVN] r36507 - gnunet/src/hello
Date: Sat, 17 Oct 2015 00:45:39 +0200

Author: grothoff
Date: 2015-10-17 00:45:39 +0200 (Sat, 17 Oct 2015)
New Revision: 36507

Modified:
   gnunet/src/hello/gnunet-hello.c
Log:
-ignore 2nd FRIEND hello when patching

Modified: gnunet/src/hello/gnunet-hello.c
===================================================================
--- gnunet/src/hello/gnunet-hello.c     2015-10-16 22:19:35 UTC (rev 36506)
+++ gnunet/src/hello/gnunet-hello.c     2015-10-16 22:45:39 UTC (rev 36507)
@@ -166,7 +166,7 @@
                   GNUNET_DISK_file_read (fh, buf, fsize));
     GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
     orig = (struct GNUNET_HELLO_Message *) buf;
-    if ( (fsize != GNUNET_HELLO_size (orig)) ||
+    if ( (fsize < GNUNET_HELLO_size (orig)) ||
         (GNUNET_OK != GNUNET_HELLO_get_id (orig,
                                             &pid)) )
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]