summaryrefslogtreecommitdiff
path: root/lib/ZMkAuth.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-09-09 10:08:54 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-09-09 10:08:54 +0000
commit29ccb4f61f533c160e68eb6d0e38e0fba0e8ab5c (patch)
treea89b14f4b0fead0904005621da80ffadcc011949 /lib/ZMkAuth.c
parenta6c726f967e866e818211de9fdb6e4ab3bdec41a (diff)
fix order of setting auth flags [jtkohl]
Diffstat (limited to 'lib/ZMkAuth.c')
-rw-r--r--lib/ZMkAuth.c3
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