]> andersk Git - gssapi-openssh.git/blobdiff - openssh/gss-serv.c
Merge from OPENSSH_3_8_1P1_GSSAPI_20040713 to OPENSSH_3_9P1_GSSAPI_20040818.
[gssapi-openssh.git] / openssh / gss-serv.c
index 2c26762d208e6f0b4eb784f05ab23b03ae8279ea..865a74831de12fa863aaf8cc10111904d96fac7e 100644 (file)
@@ -401,10 +401,12 @@ ssh_gssapi_server_mechanisms() {
        mechs=xmalloc(buffer_len(&buf));
        buffer_get(&buf,mechs,buffer_len(&buf));
        buffer_free(&buf);
-       if (strlen(mechs)==0)
-          return(NULL);
-       else
-          return(mechs);
+       if (strlen(mechs)==0) {
+           options.gss_authentication = 0; /* no mechs. skip gss auth. */
+           return(NULL);
+       } else {
+           return(mechs);
+       }
 }
 
 /* Return the OID that corresponds to the given context name */
This page took 0.048403 seconds and 4 git commands to generate.