commit d5d8dd372645cba2f8b9a8656a8cf2a212c65904
Author: Pete Zaitcev <zaitcev(a)redhat.com>
Date: Fri Oct 28 20:44:16 2011 -0600
iwhd: print a better diagnostic upon failure
This bug is super obvious, but fortunately, the only result was that
a wrong error message was printed.
rest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rest.c b/rest.c
index 231901e..4630279 100644
--- a/rest.c
+++ b/rest.c
@@ -511,7 +511,7 @@ proxy_put_data (void *cctx, struct MHD_Connection *conn, const char *url,
* our peace.
*/
rc = pipe_prod_wait_init(&ms->pipe);
- if (rc != 0) {
+ if (rc < 0) {
DPRINTF("producer wait failed\n");
return do_resp(conn,ms,MHD_HTTP_INTERNAL_SERVER_ERROR,
NULL,NULL);