Skip to content

Commit

Permalink
Merge pull request #74 from retropc/nterfacer_fix_max
Browse files Browse the repository at this point in the history
NTERFACER: increase maximum "number" from 65535 to 2**31
  • Loading branch information
retropc committed Jun 3, 2018
2 parents ee1fce9 + 81a6eac commit b7c20f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nterfacer/nterfacer.c
Expand Up @@ -17,6 +17,7 @@
#include <strings.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdint.h>

#include "../lib/sstring.h"
#include "../lib/irc_string.h"
Expand Down Expand Up @@ -562,7 +563,7 @@ int nterfacer_new_rline(char *line, struct esocket *socket, int *number) {
*p = '\0';
*number = positive_atoi(sp + 1);

if((*number < 1) || (*number > 0xffff))
if((*number < 1) || (*number > INT32_MAX))
return RE_BAD_LINE;

if (!service) {
Expand Down

0 comments on commit b7c20f5

Please sign in to comment.