From: Theodore Tso Date: Wed, 27 Feb 1991 14:14:39 +0000 (+0000) Subject: Made changes to conform to API modifications X-Git-Tag: krb5-1.0-alpha4~162 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5565171b0593f03581d8ba9167b011dacb83c52d;p=krb5.git Made changes to conform to API modifications git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1810 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/sample/sserver/sserver.c b/src/appl/sample/sserver/sserver.c index 1dea2c9d1..b6c28801f 100644 --- a/src/appl/sample/sserver/sserver.c +++ b/src/appl/sample/sserver/sserver.c @@ -53,7 +53,7 @@ char *argv[]; krb5_data recv_data; short xmitlen; krb5_error_code retval; - krb5_tkt_authent authd; + krb5_tkt_authent *authdat; krb5_principal server; char repbuf[BUFSIZ]; char *cname; @@ -138,17 +138,18 @@ char *argv[]; syslog(LOG_ERR, "read contents: %m"); exit(1); } - if (retval = krb5_rd_req_simple(&recv_data, server, &peeraddr, &authd)) { + if (retval = krb5_rd_req_simple(&recv_data, server, &peeraddr, &authdat)) { syslog(LOG_ERR, "rd_req failed: %s", error_message(retval)); sprintf(repbuf, "RD_REQ failed: %s\n", error_message(retval)); goto sendreply; } xfree(recv_data.data); - if (retval = krb5_unparse_name(authd.ticket->enc_part2->client, &cname)) { + if (retval = krb5_unparse_name(authdat->ticket->enc_part2->client, &cname)) { syslog(LOG_ERR, "unparse failed: %s", error_message(retval)); cname = ""; } + krb5_free_tkt_authent(authdat); sprintf(repbuf, "You are %s\n", cname); if (!retval) free(cname);