From: Theodore Tso Date: Sat, 30 Oct 1993 23:01:27 +0000 (+0000) Subject: Fixed bug in simple server where packet length wasn't being set X-Git-Tag: krb5-1.0-beta3~172 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=373718491bd2d1d37fd0f63f958c8ac75a45d3ab;p=krb5.git Fixed bug in simple server where packet length wasn't being set git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2718 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/simple/server/sim_server.c b/src/appl/simple/server/sim_server.c index 8e821255a..dce8ce3cf 100644 --- a/src/appl/simple/server/sim_server.c +++ b/src/appl/simple/server/sim_server.c @@ -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)) {