* 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
+Mon Sep 25 00:15:47 1995 Mark Eichin <eichin@cygnus.com>
+
+ * 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 <eichin@cygnus.com>
* krb524d.c (usage): needs to get context to pass to
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");