summaryrefslogtreecommitdiff
path: root/net/ascend-radius/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'net/ascend-radius/files/patch-ad')
-rw-r--r--net/ascend-radius/files/patch-ad34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/ascend-radius/files/patch-ad b/net/ascend-radius/files/patch-ad
new file mode 100644
index 000000000000..ae358b7f5a21
--- /dev/null
+++ b/net/ascend-radius/files/patch-ad
@@ -0,0 +1,34 @@
+--- radiusd.c.orig Thu Sep 19 20:20:38 1996
++++ radiusd.c Mon Sep 23 21:42:03 1996
+@@ -40,6 +40,10 @@
+ static char sccsid[] =
+ "@(#)radiusd.c 1.17 Copyright 1992 Livingston Enterprises Inc";
+
++#if defined(_HAVE_PARAM_H)
++#include <sys/param.h>
++#endif
++
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/file.h>
+@@ -151,8 +155,10 @@
+ #if defined(sys5) || defined(BSDI)
+ extern char *crypt P__((CONST char *, CONST char *));
+ #else
++#if ! defined(__FreeBSD__)
+ extern char *crypt P__((u_char *, u_char *));
+ #endif
++#endif
+ static void insertValuePair P__((VALUE_PAIR** list, VALUE_PAIR* pair));
+ static VALUE_PAIR *copyValuePair P__((VALUE_PAIR* source));
+ static AUTH_HDR *prepare_send_buffer P__((AUTH_REQ *authreq, int code));
+@@ -1727,7 +1733,8 @@
+ VALUE_PAIR *checkList;
+ VALUE_PAIR *replyList;
+ {
+- pairfree(authInfo->cutList);
++ if (authInfo->cutList != authInfo->authreq->request)
++ pairfree(authInfo->cutList);
+ authInfo->cutList = (VALUE_PAIR *)0;
+ pairfree( checkList );
+ pairfree( replyList );