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:
parent
f60db2fff9
commit
049c898aad
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue