aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-04-07 02:44:27 +0800
committerdinoex <dinoex@FreeBSD.org>2003-04-07 02:44:27 +0800
commit2864b5b22ec9783129765a06a74726b7dc88a923 (patch)
tree7817954f58e91f96da83e09f3df6c2b05d28075d
parent69abcde5e9ea5574152c1160abc2ee2c88bfa383 (diff)
downloadfreebsd-ports-graphics-2864b5b22ec9783129765a06a74726b7dc88a923.tar.gz
freebsd-ports-graphics-2864b5b22ec9783129765a06a74726b7dc88a923.tar.zst
freebsd-ports-graphics-2864b5b22ec9783129765a06a74726b7dc88a923.zip
- Fixes coredump in raduse
PR: 50570 Submitted by: guy@sphinx.incentre.net
-rw-r--r--net/radiusd-cistron/Makefile1
-rw-r--r--net/radiusd-cistron/files/patch-raduse65
2 files changed, 66 insertions, 0 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile
index b2750d08e6b..e5aee999bd3 100644
--- a/net/radiusd-cistron/Makefile
+++ b/net/radiusd-cistron/Makefile
@@ -7,6 +7,7 @@
PORTNAME= radiusd-cistron
PORTVERSION= 1.6.6
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/ \
ftp://ftp.freeradius.org/pub/radius/
diff --git a/net/radiusd-cistron/files/patch-raduse b/net/radiusd-cistron/files/patch-raduse
new file mode 100644
index 00000000000..bc60ed5ab72
--- /dev/null
+++ b/net/radiusd-cistron/files/patch-raduse
@@ -0,0 +1,65 @@
+--- src/raduse.c Mon May 7 14:33:45 2001
++++ src/raduse.c Thu Apr 3 09:25:17 2003
+@@ -271,7 +271,7 @@
+
+ int main(int argc, char **argv)
+ {
+- char *radwtmp_path;
++ char *radwtmp_path = RADWTMP;
+ int wide = 0;
+ int c;
+ int offset = 0;
+--- src/cache.c Mon May 7 14:33:45 2001
++++ src/cache.c Thu Apr 3 09:39:09 2003
+@@ -51,7 +51,10 @@
+ * in memory. Returns -1 on failure, 0 on success.
+ */
+ int buildHashTable(void) {
+- FILE *passwd, *shadow;
++ FILE *passwd;
++#if !defined(NOSHADOW)
++ FILE *shadow;
++#endif /* SHADOW */
+ char buffer[BUFSIZE];
+ char idtmp[10];
+ char username[MAXUSERNAME];
+--- src/readusers.c Sat Nov 10 05:41:39 2001
++++ src/readusers.c Thu Apr 3 09:42:12 2003
+@@ -179,7 +179,7 @@
+ char *ptr;
+ char buffer[256];
+ int first = 1;
+- int parsecode;
++ int parsecode = 0;
+ int state = 0;
+ int c;
+
+--- src/pair.c Mon Nov 26 14:51:59 2001
++++ src/pair.c Thu Apr 3 09:44:46 2003
+@@ -429,9 +429,9 @@
+ VALUE_PAIR *pair;
+ struct tm *tm;
+ time_t timeval;
+- int operator;
++ int operator = 0;
+ int rcode;
+- int tag;
++ int tag = 0;
+
+ rcode = USERPARSE_EOS;
+ mode = PARSE_MODE_NAME;
+--- src/radclient.c Tue Nov 13 05:55:14 2001
++++ src/radclient.c Thu Apr 3 09:46:58 2003
+@@ -122,10 +122,10 @@
+ char *radius_dir;
+ UINT4 server_ip;
+ int port;
+- int code;
++ int code = 0;
+ int sockfd;
+ int salen;
+- int result;
++ int result = 0;
+ int length;
+ int i;
+