diff options
author | Richard Basch <probe@mit.edu> | 1997-02-18 23:35:19 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1997-02-18 23:35:19 +0000 |
commit | 8d1cdd087d2da9225d452a3eba8779ef6afc73c4 (patch) | |
tree | 93d339bff4fd71926377b5c811275b81378f2316 /src/appl/simple/client/sim_client.c | |
parent | ab78e04bf77d0e879edd962f69ab6d29df7cee8a (diff) | |
download | krb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.zip krb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.tar.gz krb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.tar.bz2 |
Remove krb5_xfree from the public interface
Implement krb5_free_data & krb5_free_data_contents to cleanup krb5_data
structures and data contents allocated by the krb5 library.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9904 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
-rw-r--r-- | src/appl/simple/client/sim_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index a573dfa..ec88a76 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -237,7 +237,7 @@ main(argc, argv) if ((i = send(sock, (char *)packet.data, packet.length, flags)) < 0) com_err(progname, errno, "while sending KRB_AP_REQ message"); printf("Sent authentication data: %d bytes\n", i); - krb5_xfree(packet.data); + krb5_free_data_contents(context, &packet); /* PREPARE KRB_SAFE MESSAGE */ @@ -305,7 +305,7 @@ main(argc, argv) if ((i = send(sock, (char *)packet.data, packet.length, flags)) < 0) com_err(progname, errno, "while sending SAFE message"); printf("Sent checksummed message: %d bytes\n", i); - krb5_xfree(packet.data); + krb5_free_data_contents(context, &packet); /* PREPARE KRB_PRIV MESSAGE */ @@ -320,7 +320,7 @@ main(argc, argv) if ((i = send(sock, (char *)packet.data, packet.length, flags)) < 0) com_err(progname, errno, "while sending PRIV message"); printf("Sent encrypted message: %d bytes\n", i); - krb5_xfree(packet.data); + krb5_free_data_contents(context, &packet); krb5_auth_con_free(context, auth_context); krb5_free_context(context); |