1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix a segfault when authenticating against the system passwd file:

there's little sense in passing an integer port number to a string
comparison routine :)
Bump PORTREVISION.

Reported by:	Rudy <rudy@tzone.it>
This commit is contained in:
Peter Pentchev 2002-06-14 09:38:41 +00:00
parent a8ffa62f35
commit e756b17c46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61256
4 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.3.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.inter7.com/devel/

View File

@ -0,0 +1,11 @@
--- vchkpw.c.orig Thu Jun 13 15:05:53 2002
+++ vchkpw.c Thu Jun 13 15:06:16 2002
@@ -556,7 +556,7 @@
pw_gid = pw->pw_gid;
pw_dir = pw->pw_dir;
#ifdef POP_AUTH_OPEN_RELAY
- if ( (strcmp(LocalPort, "25") != 0) && (strcmp(LocalPort, "465") != 0)) {
+ if ( (LocalPort != 25) && (LocalPort != 465)) {
open_smtp_relay();
}
#endif

View File

@ -7,6 +7,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.3.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.inter7.com/devel/

View File

@ -0,0 +1,11 @@
--- vchkpw.c.orig Thu Jun 13 15:05:53 2002
+++ vchkpw.c Thu Jun 13 15:06:16 2002
@@ -556,7 +556,7 @@
pw_gid = pw->pw_gid;
pw_dir = pw->pw_dir;
#ifdef POP_AUTH_OPEN_RELAY
- if ( (strcmp(LocalPort, "25") != 0) && (strcmp(LocalPort, "465") != 0)) {
+ if ( (LocalPort != 25) && (LocalPort != 465)) {
open_smtp_relay();
}
#endif