summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-06-14 04:37:29 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-06-14 04:37:29 +0000
commitdd72fa450d801d5f3e5c2ade8976e7278d83b753 (patch)
treebdb8a4b19e872cda2ae1709fc0c30ba151392f58
parente15f4961b9f691069921c682de81d164e1a4c681 (diff)
downloadsamba-dd72fa450d801d5f3e5c2ade8976e7278d83b753.tar.gz
samba-dd72fa450d801d5f3e5c2ade8976e7278d83b753.tar.xz
samba-dd72fa450d801d5f3e5c2ade8976e7278d83b753.zip
r1128: The end-of-file is not the end of the world, so don't make a load DEBUG() about it.
Andrew Bartlett
-rw-r--r--source/utils/ntlm_auth.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/utils/ntlm_auth.c b/source/utils/ntlm_auth.c
index 99767a56266..39dcd9993d0 100644
--- a/source/utils/ntlm_auth.c
+++ b/source/utils/ntlm_auth.c
@@ -1594,9 +1594,13 @@ static void manage_squid_request(enum stdio_helper_mode helper_mode, stdio_helpe
/* this is not a typo - x_fgets doesn't work too well under squid */
if (fgets(buf, sizeof(buf)-1, stdin) == NULL) {
- DEBUG(1, ("fgets() failed! dying..... errno=%d (%s)\n", ferror(stdin),
- strerror(ferror(stdin))));
- exit(1); /* BIIG buffer */
+ if (ferror(stdin)) {
+ DEBUG(1, ("fgets() failed! dying..... errno=%d (%s)\n", ferror(stdin),
+ strerror(ferror(stdin))));
+
+ exit(1); /* BIIG buffer */
+ }
+ exit(0);
}
c=memchr(buf,'\n',sizeof(buf)-1);