s3:librpc: Fix OM_uint32 comparsion in if-clause
authorAndreas Schneider <asn@samba.org>
Fri, 17 Feb 2017 08:49:39 +0000 (09:49 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Feb 2017 02:18:11 +0000 (03:18 +0100)
Found by covscan.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12592

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/crypto/gse.c

index 792700ede04c6f361f6882f25d42457c4784b545..99971d30881d9bf7883753fc66ebab396454a6de 100644 (file)
@@ -347,7 +347,7 @@ static NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx,
                break;
        default:
                if ((gss_maj == GSS_S_FAILURE) &&
-                   (gss_min == KRB5KRB_AP_ERR_TKT_EXPIRED)) {
+                   (gss_min == (OM_uint32)KRB5KRB_AP_ERR_TKT_EXPIRED)) {
                        DBG_NOTICE("Ticket expired\n");
                } else {
                        DBG_ERR("gss_init_sec_context failed with [%s]\n",