]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test: lib-http: Check o_stream_send return value
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 17 Mar 2017 08:16:11 +0000 (10:16 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Mar 2017 17:57:25 +0000 (20:57 +0300)
Makes static analyzers happier

src/lib-http/test-http-server.c

index 2ab4ce1630a8105900282aa1b96ca88835c16952..1c8c09fdf512ee10911f40d5838746836f0f2c29 100644 (file)
@@ -41,7 +41,7 @@ client_handle_request(struct client *client, struct http_request *request)
        str_append(str, "Content-Type: text/plain\r\n");
        str_append(str, "\r\n");
        str_append(str, request->target_raw);
-       o_stream_send(client->conn.output, str_data(str), str_len(str));
+       o_stream_nsend(client->conn.output, str_data(str), str_len(str));
        return 0;
 }