Added missing line to set return status code.
authorMichael Brown <mcb30@etherboot.org>
Tue, 3 Jul 2007 20:22:12 +0000 (21:22 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 3 Jul 2007 20:22:12 +0000 (21:22 +0100)
src/net/tcp/http.c

index dcd0d3a..f81a9b5 100644 (file)
@@ -349,6 +349,7 @@ static int http_socket_deliver_iob ( struct xfer_interface *socket,
                        len = line_buffer ( &http->linebuf, iobuf->data,
                                            iob_len ( iobuf ) );
                        if ( len < 0 ) {
+                               rc = len;
                                DBGC ( http, "HTTP %p could not buffer line: "
                                       "%s\n", http, strerror ( rc ) );
                                goto done;