mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 188416: possibility of NULL iface
This commit is contained in:
parent
0b65112ec4
commit
5fe9335b36
1 changed files with 2 additions and 0 deletions
|
@ -2373,6 +2373,8 @@ lws_socket_bind(struct lws_vhost *vhost, lws_sockfd_type sockfd, int port,
|
|||
n = sizeof(struct sockaddr_un);
|
||||
bzero((char *) &serv_unix, sizeof(serv_unix));
|
||||
serv_unix.sun_family = AF_UNIX;
|
||||
if (!iface)
|
||||
return -1;
|
||||
if (sizeof(serv_unix.sun_path) <= strlen(iface)) {
|
||||
lwsl_err("\"%s\" too long for UNIX domain socket\n",
|
||||
iface);
|
||||
|
|
Loading…
Add table
Reference in a new issue