summaryrefslogtreecommitdiff
path: root/net/ascend-radius/files/patch-ad
blob: e012be1ce8ad888fc41046ea5373cc779c7966c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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__) || defined(__OpenBSD__) || defined(__NetBSD__))
 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 );