Whamcloud - gitweb
LU-5396 all: use NULL instead of 0
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_mech_switch.c
index 1d80a77..ed0f251 100644 (file)
@@ -331,7 +331,7 @@ __u32 lgss_delete_sec_context(struct gss_ctx **context_handle)
                 return(GSS_S_NO_CONTEXT);
 
         mech = (*context_handle)->mech_type;
-        if ((*context_handle)->internal_ctx_id != 0) {
+       if ((*context_handle)->internal_ctx_id != NULL) {
                 LASSERT(mech);
                 LASSERT(mech->gm_ops);
                 LASSERT(mech->gm_ops->gss_delete_sec_context);