From: Mark Eichin Date: Mon, 25 Sep 1995 04:20:37 +0000 (+0000) Subject: (this may have caused the spin-looping I saw...) X-Git-Tag: krb5-1.0-beta6~1015 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f66622c5dd00459a335143ec94c90eb8cf7862f2;p=krb5.git (this may have caused the spin-looping I saw...) * krb524d.c (do_connection): if recvfrom failed, just return, don't try to use the (likely invalid) sockaddr in a reply message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6850 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index b361dff33..a46711842 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 25 00:15:47 1995 Mark Eichin + + * krb524d.c (do_connection): if recvfrom failed, just return, + don't try to use the (likely invalid) sockaddr in a reply message. + Thu Sep 14 17:36:11 1995 Mark Eichin * krb524d.c (usage): needs to get context to pass to diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 889a11b81..df9a15c06 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -268,8 +268,9 @@ krb5_error_code do_connection(s, context) saddrlen = sizeof(struct sockaddr); ret = recvfrom(s, msgdata.data, msgdata.length, 0, &saddr, &saddrlen); if (ret < 0) { - ret = errno; - goto error; + /* if recvfrom fails, we probably don't have a valid saddr to + use for the reply, so don't even try to respond. */ + return errno; } if (debug) printf("message received\n");