|
Line 0
Link Here
|
|
|
1 |
--- src/auth/mech-winbind.c |
| 2 |
+++ src/auth/mech-winbind.c |
| 3 |
@@ -187,12 +187,18 @@ |
| 4 |
request->continued = FALSE; |
| 5 |
|
| 6 |
while ((answer = i_stream_read_next_line(in_pipe)) == NULL) { |
| 7 |
- if (in_pipe->stream_errno != 0) |
| 8 |
+ if (in_pipe->stream_errno != 0 || in_pipe->eof) |
| 9 |
break; |
| 10 |
} |
| 11 |
if (answer == NULL) { |
| 12 |
- auth_request_log_error(auth_request, AUTH_SUBSYS_MECH, |
| 13 |
- "read(in_pipe) failed: %m"); |
| 14 |
+ if (in_pipe->stream_errno != 0) { |
| 15 |
+ auth_request_log_error(auth_request, AUTH_SUBSYS_MECH, |
| 16 |
+ "read(in_pipe) failed: %m"); |
| 17 |
+ } else { |
| 18 |
+ auth_request_log_error(auth_request, AUTH_SUBSYS_MECH, |
| 19 |
+ "read(in_pipe) failed: " |
| 20 |
+ "unexpected end of file"); |
| 21 |
+ } |
| 22 |
return HR_RESTART; |
| 23 |
} |
| 24 |
|