summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-06-14 04:37:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:57 -0500
commit2895acb6e7c476e88735096b7f5d01f616739fe3 (patch)
tree80c61ed3a903ca9892bc91bfde7a55bf5e1bef5a /source3/utils
parentc8f63452b8c45b0c87a6c74a4d1869bcbd000bda (diff)
downloadsamba-2895acb6e7c476e88735096b7f5d01f616739fe3.tar.gz
samba-2895acb6e7c476e88735096b7f5d01f616739fe3.tar.bz2
samba-2895acb6e7c476e88735096b7f5d01f616739fe3.zip
r1128: The end-of-file is not the end of the world, so don't make a load DEBUG() about it.
Andrew Bartlett (This used to be commit 4da976dbd07e70726055cc4251fd1c26f63b3b2c)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 99767a5626..39dcd9993d 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/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);