[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5076 - in GNUnet/src: applications/identity util/network
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5076 - in GNUnet/src: applications/identity util/network |
Date: |
Fri, 15 Jun 2007 22:43:49 -0600 (MDT) |
Author: grothoff
Date: 2007-06-15 22:43:48 -0600 (Fri, 15 Jun 2007)
New Revision: 5076
Modified:
GNUnet/src/applications/identity/clientapi.c
GNUnet/src/util/network/dns.c
Log:
fixes
Modified: GNUnet/src/applications/identity/clientapi.c
===================================================================
--- GNUnet/src/applications/identity/clientapi.c 2007-06-16 04:43:36 UTC
(rev 5075)
+++ GNUnet/src/applications/identity/clientapi.c 2007-06-16 04:43:48 UTC
(rev 5076)
@@ -198,7 +198,7 @@
}
count++;
if ( (ntohs(reply->type) != CS_PROTO_identity_INFO) ||
- (ntohs(reply->size) <= sizeof(CS_identity_peer_info_MESSAGE)) ) {
+ (ntohs(reply->size) < sizeof(CS_identity_peer_info_MESSAGE)) ) {
GE_BREAK(NULL, 0);
FREE(reply);
return SYSERR;
Modified: GNUnet/src/util/network/dns.c
===================================================================
--- GNUnet/src/util/network/dns.c 2007-06-16 04:43:36 UTC (rev 5075)
+++ GNUnet/src/util/network/dns.c 2007-06-16 04:43:48 UTC (rev 5076)
@@ -196,6 +196,8 @@
struct IPCache * prev;
cron_t now;
+ if (salen < sizeof(struct sockaddr))
+ return NULL;
now = get_time();
MUTEX_LOCK(lock);
cache = head;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5076 - in GNUnet/src: applications/identity util/network,
gnunet <=