From c35a84fdd19d9e7a3d662d4d05c0ba199ca65b6f Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 24 Oct 1994 19:29:08 +0000 Subject: [PATCH] Don't free host_save; it's supposed to be returned by kcmd to the caller! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4562 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 3 +++ src/appl/bsd/kcmd.c | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c29a8e65d..4e3794c80 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,5 +1,8 @@ Mon Oct 24 14:46:07 1994 (tytso@rsx-11) + * kcmd.c (kcmd): Don't free host_save; it's supposed to be + returned by kcmd to the caller! + * configure.in * krlogin.c (des_write): Don't check for srand48 and then try to define srandom to be srand48. This breaks on machines diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index decfee148..185b9cdf1 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -189,7 +189,6 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, #endif #endif /* POSIX_SIGNALS */ if (tmpstr) krb5_xfree(tmpstr); - if (host_save) krb5_xfree(host_save); krb5_free_creds(ret_cred); return (-1); } @@ -239,7 +238,6 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, #endif #endif /* POSIX_SIGNALS */ if (tmpstr) krb5_xfree(tmpstr); - if (host_save) krb5_xfree(host_save); krb5_free_creds(ret_cred); return (-1); } @@ -411,7 +409,6 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, #endif /* POSIX_SIGNALS */ *sock = s; if (tmpstr) krb5_xfree(tmpstr); - if (host_save) krb5_xfree(host_save); /* pass back credentials if wanted */ if (cred) krb5_copy_creds(ret_cred,cred); @@ -433,7 +430,6 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, #endif #endif /* POSIX_SIGNALS */ if (tmpstr) krb5_xfree(tmpstr); - if (host_save) krb5_xfree(host_save); if (ret_cred) krb5_free_creds(ret_cred); return (status); -- 2.26.2