]> andersk Git - gssapi-openssh.git/commitdiff
Fixed a null pointer dereference introduced during the usage metrics
authorysvenkat <ysvenkat>
Fri, 15 Jan 2010 23:37:47 +0000 (23:37 +0000)
committerysvenkat <ysvenkat>
Fri, 15 Jan 2010 23:37:47 +0000 (23:37 +0000)
support work.

openssh/gss-serv.c

index 9a21de37c89f0ec2640eed66a42bde7336a7af9a..ca1370f7f24207a2e4765a64d0781540bedad3f7 100644 (file)
@@ -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
This page took 0.039911 seconds and 5 git commands to generate.