diff options
author | John Kohl <jtkohl@mit.edu> | 1988-09-09 10:08:54 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-09-09 10:08:54 +0000 |
commit | 29ccb4f61f533c160e68eb6d0e38e0fba0e8ab5c (patch) | |
tree | a89b14f4b0fead0904005621da80ffadcc011949 | |
parent | a6c726f967e866e818211de9fdb6e4ab3bdec41a (diff) |
fix order of setting auth flags [jtkohl]
-rw-r--r-- | lib/ZMkAuth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ZMkAuth.c b/lib/ZMkAuth.c index d2027c0..763713a 100644 --- a/lib/ZMkAuth.c +++ b/lib/ZMkAuth.c @@ -30,11 +30,11 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) int retval, result; KTEXT_ST authent; - notice->z_auth = 1; if ((result = krb_mk_req(&authent, SERVER_SERVICE, SERVER_INSTANCE, __Zephyr_realm, 0)) != MK_AP_OK) return (result+krb_err_base); + notice->z_auth = 1; notice->z_authent_len = authent.length; notice->z_ascii_authent = (char *)malloc((unsigned)authent.length*3); if (!notice->z_ascii_authent) @@ -52,6 +52,7 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) return (retval); #else + notice->z_auth = 1; notice->z_authent_len = 0; return (Z_FormatRawHeader(notice, buffer, buffer_len, len, (char **) 0)); #endif |