Skip to content

Commit

Permalink
fixed compilation with the latest nginx version
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Jul 5, 2016
1 parent e089592 commit cb54ed4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ngx_rtmp_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ ngx_rtmp_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
break;
}

if (ngx_memcmp(ls[i].sockaddr + off, u.sockaddr + off, len) != 0) {
if (ngx_memcmp(ls[i].sockaddr + off, (u_char *) &u.sockaddr + off, len)
!= 0)
{
continue;
}

Expand All @@ -565,7 +567,7 @@ ngx_rtmp_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

ngx_memzero(ls, sizeof(ngx_rtmp_listen_t));

ngx_memcpy(ls->sockaddr, u.sockaddr, u.socklen);
ngx_memcpy(ls->sockaddr, (u_char *) &u.sockaddr, u.socklen);

ls->socklen = u.socklen;
ls->wildcard = u.wildcard;
Expand Down

0 comments on commit cb54ed4

Please sign in to comment.