X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/9f2c8cb950fea61c599edeb9721aca66f4bd61f6..HEAD:/openssh/gss-serv.c?ds=sidebyside diff --git a/openssh/gss-serv.c b/openssh/gss-serv.c index 6fbc09d..ca1370f 100644 --- a/openssh/gss-serv.c +++ b/openssh/gss-serv.c @@ -455,7 +455,7 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep) /* Privileged */ int -ssh_gssapi_userok(char *user, struct passwd *pw) +ssh_gssapi_userok(char *user, struct passwd *pw, int gssapi_keyex) { OM_uint32 lmin; @@ -611,7 +611,9 @@ ssh_gssapi_update_creds(ssh_gssapi_ccache *store) { void ssh_gssapi_get_client_info(char **userdn, char **mech) { *userdn = gssapi_client.displayname.value; - *mech = gssapi_client.mech->name; + + if (gssapi_client.mech) + *mech = gssapi_client.mech->name; } #endif