]> git.llucax.com Git - z.facultad/75.74/practicos.git/commitdiff
Bugfix (typo).
authorLeandro Lucarella <llucax@gmail.com>
Tue, 4 Jul 2006 14:26:36 +0000 (14:26 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Tue, 4 Jul 2006 14:26:36 +0000 (14:26 +0000)
practicas/pipi/src/nameserver.cpp

index b7346b7e28d7332331d01ecaa3febd5e90ec0d87..4d878b14546257404c95be0a44f1a71e2b108f28 100644 (file)
@@ -431,8 +431,8 @@ void NameServer::send_loop()
         std::string buf = snd_que.receive(mac);
 #ifdef DEBUG_RESOLV
         uint8_t type;
-        memcpy(&type, s.data(), sizeof(uint8_t));
-        std::cout << "NameServer::send_loop() -> envío "
+        memcpy(&type, buf.data(), sizeof(uint8_t));
+        std::cout << "NameServer::send_loop() -> envío ";
         if (type == RP_REQ_DIRECT || type == RP_REQ_RECURSIVE)
             std::cout << "request " << ResolvProtoRequest(buf) << "\n";
         else