[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25241 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25241 - gnunet/src/namestore |
Date: |
Tue, 4 Dec 2012 16:42:52 +0100 |
Author: grothoff
Date: 2012-12-04 16:42:52 +0100 (Tue, 04 Dec 2012)
New Revision: 25241
Modified:
gnunet/src/namestore/namestore_common.c
Log:
-fix
Modified: gnunet/src/namestore/namestore_common.c
===================================================================
--- gnunet/src/namestore/namestore_common.c 2012-12-04 15:37:39 UTC (rev
25240)
+++ gnunet/src/namestore/namestore_common.c 2012-12-04 15:42:52 UTC (rev
25241)
@@ -435,13 +435,13 @@
return NULL; /* malformed */
vpn = data;
GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer);
- if (0 == GNUNET_asprintf (&vpn_str, "%hu %s %s",
- vpn->proto,
+ if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s",
+ (unsigned int) ntohl (vpn->proto),
(const char*) &s_peer,
(const char*) &vpn[1]))
{
- GNUNET_free (vpn_str);
- return NULL;
+ GNUNET_free (vpn_str);
+ return NULL;
}
return vpn_str;
case GNUNET_DNSPARSER_TYPE_SRV:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25241 - gnunet/src/namestore,
gnunet <=