]> andersk Git - gssapi-openssh.git/commitdiff
- initialize ret_flags before calling gss_accept_sec_context()
authorjbasney <jbasney>
Tue, 29 Jun 2004 02:57:29 +0000 (02:57 +0000)
committerjbasney <jbasney>
Tue, 29 Jun 2004 02:57:29 +0000 (02:57 +0000)
  because GSI treats ret_flags as both input and output parameters
- only call start_pam() if UsePAM=yes

openssh/auth2-gss.c

index ad85e1fb8ede9b1acc5b959f0ce7efaeb6fcbba6..cdc89450bbf44264b4c8055d409f94c7dee9bbe4 100644 (file)
@@ -141,7 +141,7 @@ input_gssapi_token(int type, u_int32_t plen, void *ctxt)
        Gssctxt *gssctxt;
        gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
        gss_buffer_desc recv_tok;
-       OM_uint32 maj_status, min_status, flags;
+       OM_uint32 maj_status, min_status, flags=0;
        u_int len;
 
        if (authctxt == NULL || (authctxt->methoddata == NULL && !use_privsep))
@@ -242,7 +242,8 @@ gssapi_set_implicit_username(Authctxt *authctxt)
     }
     if (authctxt->pw) {
 #ifdef USE_PAM
-       PRIVSEP(start_pam(authctxt->pw->pw_name));
+       if (options.use_pam)
+               PRIVSEP(start_pam(authctxt->pw->pw_name));
 #endif
     }
 }
This page took 0.033759 seconds and 5 git commands to generate.