only insert the replay if we succeeded in generating a reply
authorJohn Kohl <jtkohl@mit.edu>
Thu, 14 Feb 1991 09:08:31 +0000 (09:08 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 14 Feb 1991 09:08:31 +0000 (09:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1693 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/dispatch.c

index 394a5bae75ed2d5d6dfee540a14cdc1f08d99bbe..87af23fecef59ac06efbfd840a05a41c8cbbabe0 100644 (file)
@@ -61,7 +61,8 @@ krb5_data **response;
     else
        retval = KRB5KRB_AP_ERR_MSG_TYPE;
     /* put the response into the lookaside buffer */
-    kdc_insert_lookaside(pkt, *response);
+    if (!retval)
+       kdc_insert_lookaside(pkt, *response);
 
     return retval;
 }