send_request needs to return a negative error value.
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 23:48:37 +0000 (15:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 23:48:37 +0000 (15:48 -0800)
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
bti.c

diff --git a/bti.c b/bti.c
index 9fb5f54..147d44b 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -726,7 +726,7 @@ static int send_request(struct session *session)
 
                if (!reply) {
                        fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint);
-                       return 1;
+                       return -EIO;
                }
 
                if ((session->action != ACTION_UPDATE) &&