Skip to content

Commit

Permalink
api: fix port > 32768
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Mar 5, 2015
1 parent d5b6dd5 commit 0eccce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static bool check_connect(struct sockaddr_in *cli, char **connectaddr, char *gro
static void api()
{
const char *addr = opt_api_allow;
short int port = opt_api_listen; // 4068
unsigned short port = (unsigned short) opt_api_listen; // 4048
char buf[MYBUFSIZ];
int c, n, bound;
char *connectaddr;
Expand Down

0 comments on commit 0eccce9

Please sign in to comment.