[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSSAPI & non-default keytab file



GOMBAS Gabor <gombasg@inf.elte.hu> writes:

> -  if (acceptor_cred_handle == GSS_C_NO_CREDENTIAL) {
> -      if (gss_keytab != NULL) {
> -	  keytab = gss_keytab;
> -     }
> -  } else if (acceptor_cred_handle->keytab != NULL) {
> -     keytab = acceptor_cred_handle->keytab;
> +  if (acceptor_cred_handle->keytab != NULL) {
> +    keytab = acceptor_cred_handle->keytab;
> +  }
> +  else {
> +    keytab = gss_keytab;

This isn't right. GSS_C_NO_CREDENTIAL is NULL, so dereferencing it
will cause problems.

/Johan