[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5017 - GNUnet/src/applications/stats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5017 - GNUnet/src/applications/stats |
Date: |
Mon, 11 Jun 2007 20:57:29 -0600 (MDT) |
Author: grothoff
Date: 2007-06-11 20:57:29 -0600 (Mon, 11 Jun 2007)
New Revision: 5017
Modified:
GNUnet/src/applications/stats/clientapi.c
Log:
extra validation
Modified: GNUnet/src/applications/stats/clientapi.c
===================================================================
--- GNUnet/src/applications/stats/clientapi.c 2007-06-12 01:29:52 UTC (rev
5016)
+++ GNUnet/src/applications/stats/clientapi.c 2007-06-12 02:57:29 UTC (rev
5017)
@@ -317,7 +317,8 @@
if (SYSERR == connection_read(sock,
(MESSAGE_HEADER**)&statMsg))
return SYSERR;
- if (ntohs(statMsg->header.size) < sizeof(CS_stats_reply_MESSAGE)) {
+ if ( (ntohs(statMsg->header.size) < sizeof(CS_stats_reply_MESSAGE)) ||
+ (((char*)statMsg)[ntohs(statMsg->header.size)-1] != '\0') ) {
GE_BREAK(ectx, 0);
ret = SYSERR;
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5017 - GNUnet/src/applications/stats,
gnunet <=