Fixed bug in simple server where packet length wasn't being set
authorTheodore Tso <tytso@mit.edu>
Sat, 30 Oct 1993 23:01:27 +0000 (23:01 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 30 Oct 1993 23:01:27 +0000 (23:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2718 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/simple/server/sim_server.c

index 8e821255a000b3aeb84b93e6f3e4482d24a6600f..dce8ce3cf7f28d69ab470ceb00272a45caa70c45 100644 (file)
@@ -226,6 +226,9 @@ char *argv[];
     }
     printf("Received %d bytes\n", i);
 
+    packet.length = i;
+    packet.data = (krb5_pointer) pktbuf;
+    
     if (retval = krb5_gen_portaddr(&foreign_addr,
                                   (krb5_pointer) &c_sock.sin_port,
                                   &portforeign_addr)) {