diff -BrauN orig/authbind-1.2.0/helper.c changed/authbind-1.2.0/helper.c --- orig/authbind-1.2.0/helper.c 1998-08-30 21:52:38.000000000 +0200 +++ changed/authbind-1.2.0/helper.c 2009-08-10 13:46:49.000000000 +0300 @@ -73,7 +73,7 @@ addr= strtoul(argv[1],&ep,16); if (*ep || addr&~0x0ffffffffUL) badusage(); port= strtoul(argv[2],&ep,16); if (*ep || port&~0x0ffffUL) badusage(); hport= htons(port); - if (hport >= IPPORT_RESERVED/2) _exit(EPERM); + if (hport >= IPPORT_RESERVED) _exit(EPERM); if (chdir(CONFIGDIR)) perrorfail("chdir " CONFIGDIR); diff -BrauN orig/authbind-1.2.0/libauthbind.c changed/authbind-1.2.0/libauthbind.c --- orig/authbind-1.2.0/libauthbind.c 2004-04-02 21:54:27.000000000 +0300 +++ changed/authbind-1.2.0/libauthbind.c 2009-08-10 13:47:00.000000000 +0300 @@ -153,7 +153,8 @@ if (addr->sa_family != AF_INET || addrlen != sizeof(struct sockaddr_in) || !geteuid() || ((struct sockaddr_in*)addr)->sin_port == 0 || - ntohs(((struct sockaddr_in*)addr)->sin_port) >= IPPORT_RESERVED/2) + ntohs(((struct sockaddr_in*)addr)->sin_port) >= IPPORT_RESERVED + ) return old_bind(fd,addr,addrlen); sigfillset(&block);