X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/6b30affc1ec14bf38a73994e8fdd39f26b5bccb3..313e4f0fe0eecf9316716535c2a1100a369fa934:/udp.c diff --git a/udp.c b/udp.c index a6ab49a..838fd51 100644 --- a/udp.c +++ b/udp.c @@ -259,7 +259,14 @@ bool_t udp_make_socket(struct udpcommon *uc, struct udpsock *us, FAIL("waitpid for authbind"); } if (status) { - lg_exitstatus(FAIL_LG,status,"authbind"); + if (WIFEXITED(status) && WEXITSTATUS(status)<127) { + int es=WEXITSTATUS(status); + lg_perror(FAIL_LG,es, + "authbind exited with error exit status %d;" + " indicates error",es); + } else { + lg_exitstatus(FAIL_LG,status,"authbind"); + } goto failed; } } else {