fixes
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Jul 2009 22:23:34 +0000 (22:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Jul 2009 22:23:34 +0000 (22:23 +0000)
src/transport/plugin_transport_tcp.c

index 0d08fec6918df3b9a11711e34a67dd433cbcb605..cde0e9f45ac922d05647a15b17dd97dfba7b8253 100644 (file)
@@ -694,7 +694,7 @@ connect_and_create_validation_session (struct Plugin *plugin,
                    "Creating new session %p with `%s' based on `%s' request.\n",
                    session, 
                   GNUNET_a2s(addr, addrlen),
-                  "send_to");
+                  "validate");
 #endif
   return session;
 }
@@ -1592,7 +1592,7 @@ handle_tcp_pong (void *cls,
   plugin->env->notify_validation (plugin->env->cls,
                                  "tcp",
                                  &peer,
-                                 ntohs(vcr->challenge),
+                                 ntohl(vcr->challenge),
                                  sender_addr);
   GNUNET_free (sender_addr);
   /* after a PONG, we always close the connection */