1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

COVA10417: help coverity see no problem

This isn't strange if coverity could understand the preprocessor options
This commit is contained in:
Andy Green 2019-07-13 11:32:15 -07:00
parent f60db2fff9
commit 049c898aad

View file

@ -944,12 +944,18 @@ rops_client_bind_h1(struct lws *wsi, const struct lws_client_connect_info *i)
* When we do get the ah, now or later, he will end up at
* lws_http_client_connect_via_info2().
*/
if (lws_header_table_attach(wsi, 0) < 0)
if (lws_header_table_attach(wsi, 0)
#ifndef LWS_NO_CLIENT
< 0)
/*
* if we failed here, the connection is already closed
* and freed.
*/
return -1;
#else
)
return 0;
#endif
return 0;
}