File krb5-MITKRB5-SA-2010-005.dif of Package krb5

Index: krb5-1.7/src/lib/gssapi/krb5/accept_sec_context.c
===================================================================
--- krb5-1.7.orig/src/lib/gssapi/krb5/accept_sec_context.c
+++ krb5-1.7/src/lib/gssapi/krb5/accept_sec_context.c
@@ -603,6 +603,13 @@ kg_accept_krb5(minor_status, context_han
             goto fail;
         }
 
+        if (authdat->checksum == NULL) {
+	   /* missing checksum counts as "inappropriate type" */
+	   code = KRB5KRB_AP_ERR_INAPP_CKSUM;
+	   major_status = GSS_S_FAILURE;
+	   goto fail;
+	}
+
         /* verify that the checksum is correct */
 
         /*
openSUSE Build Service is sponsored by