Eliminate a non-useful NULL check in the KDC's dispatch() function.
authorGreg Hudson <ghudson@mit.edu>
Thu, 22 Apr 2010 03:44:44 +0000 (03:44 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 22 Apr 2010 03:44:44 +0000 (03:44 +0000)
If process_as_req or process_tgs_req return successfully, they will
always fill in *response.  (If they didn't, the subsequence
(*response)->length check would crash anyway.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23922 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/dispatch.c

index 207fa390ad17309de493736f19b246d90134a4c5..63ff3b38d82ab36ad7c36b2875a5eaf393e09cad 100644 (file)
@@ -111,7 +111,7 @@ dispatch(void *cb, struct sockaddr *local_saddr, const krb5_fulladdr *from,
         retval = KRB5KRB_AP_ERR_MSG_TYPE;
 #ifndef NOCACHE
     /* put the response into the lookaside buffer */
-    if (!retval && *response != NULL)
+    if (!retval)
         kdc_insert_lookaside(pkt, *response);
 #endif