From 373718491bd2d1d37fd0f63f958c8ac75a45d3ab Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 30 Oct 1993 23:01:27 +0000 Subject: [PATCH] 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 --- src/appl/simple/server/sim_server.c | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.26.2