Don't free host_save; it's supposed to be returned by kcmd to the
authorTheodore Tso <tytso@mit.edu>
Mon, 24 Oct 1994 19:29:08 +0000 (19:29 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 24 Oct 1994 19:29:08 +0000 (19:29 +0000)
caller!

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4562 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/kcmd.c

index c29a8e65de59241acb7fe6be7f715e8c653e5c16..4e3794c805d7e02bb784a6a766a8dcb0c7512819 100644 (file)
@@ -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
index decfee1488da796c3ce547da19fb6526dc8f06d4..185b9cdf119be5732c62c7f14e68a78294fe6a75 100644 (file)
@@ -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);