]> 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)
committerGitLab <gitlab@git.dovecot.net>
Thu, 30 Mar 2017 17:26:17 +0000 (20:26 +0300)
Makes static analyzers happier

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

index 405413a749e37ef5c0680a760eb6925fb9e11be4..0ec14887fac98225a6baedf93371d259c7f8c095 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;
 }