diff options
-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 |