From: John Kohl Date: Thu, 14 Feb 1991 09:08:31 +0000 (+0000) Subject: only insert the replay if we succeeded in generating a reply X-Git-Tag: krb5-1.0-alpha4~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5e8592b5e5077da84ee5276efed63444b49c6a9;p=krb5.git only insert the replay if we succeeded in generating a reply git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1693 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c index 394a5bae7..87af23fec 100644 --- a/src/kdc/dispatch.c +++ b/src/kdc/dispatch.c @@ -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; }