08a4ed
diff -r -u freeradius-server-3.0.1.bak/raddb/mods-available/ippool freeradius-server-3.0.1/raddb/mods-available/ippool
08a4ed
--- freeradius-server-3.0.1.bak/raddb/mods-available/ippool	2014-01-17 11:20:48.609733064 -0500
08a4ed
+++ freeradius-server-3.0.1/raddb/mods-available/ippool	2014-01-17 12:33:11.884537885 -0500
08a4ed
@@ -1,6 +1,6 @@
08a4ed
 # -*- text -*-
08a4ed
 #
08a4ed
-#  $Id: d52dc9b385dec10e970ba9af070af612f25d596d $
08a4ed
+#  $Id: 1d3305ba45ec71336f55f8f1db05f183772e1b82 $
08a4ed
 
08a4ed
 #  Do server side ip pool management. Should be added in
08a4ed
 #  post-auth and accounting sections.
08a4ed
@@ -22,54 +22,45 @@
08a4ed
 #		DEFAULT Group == teachers, Pool-Name := "teachers"
08a4ed
 #		DEFAULT	Group == other, Pool-Name := "DEFAULT"
08a4ed
 #
08a4ed
-# ********* IF YOU CHANGE THE RANGE PARAMETERS YOU MUST *********
08a4ed
-# ********* THEN ERASE THE DB FILES                     *********
08a4ed
+# Note: If you change the range parameters you must then erase the
08a4ed
+#       db files.
08a4ed
 #
08a4ed
 ippool main_pool {
08a4ed
+	#  The main db file used to allocate addresses.
08a4ed
+	filename = ${db_dir}/db.ippool
08a4ed
 
08a4ed
-	#  range-start,range-stop:
08a4ed
-	#	The start and end ip addresses for this pool.
08a4ed
+	#  The start and end ip addresses for this pool.
08a4ed
 	range_start = 192.0.2.1
08a4ed
 	range_stop = 192.0.2.254
08a4ed
 
08a4ed
-	#  netmask:
08a4ed
-	#	The network mask used for this pool.
08a4ed
+	#  The network mask used for this pool.
08a4ed
 	netmask = 255.255.255.0
08a4ed
 
08a4ed
-	#  cache_size:
08a4ed
-	#	The gdbm cache size for the db files. Should
08a4ed
-	#	be equal to the number of ip's available in
08a4ed
-	#	the ip pool
08a4ed
+	#  The gdbm cache size for the db files. Should
08a4ed
+	#  be equal to the number of ip's available in
08a4ed
+	#  the ip pool
08a4ed
 	cache_size = 800
08a4ed
 
08a4ed
-	# session-db:
08a4ed
-	#	The main db file used to allocate addresses.
08a4ed
-	session_db = ${db_dir}/db.ippool
08a4ed
-
08a4ed
-	# ip-index:
08a4ed
-	#	Helper db index file used in multilink
08a4ed
+	#  Helper db index file used in multilink
08a4ed
 	ip_index = ${db_dir}/db.ipindex
08a4ed
 
08a4ed
-	# override:
08a4ed
-	#	If set, the Framed-IP-Address already in the
08a4ed
-	#	reply (if any) will be discarded, and replaced
08a4ed
-	#	with a Framed-IP-Address assigned here.
08a4ed
+	#  If set, the Framed-IP-Address already in the
08a4ed
+	#  reply (if any) will be discarded, and replaced
08a4ed
+	#  ith a Framed-IP-Address assigned here.
08a4ed
 	override = no
08a4ed
 
08a4ed
-	# maximum-timeout:
08a4ed
-	#	Specifies the maximum time in seconds that an
08a4ed
-	#	entry may be active.  If set to zero, means
08a4ed
-	#	"no timeout".  The default value is 0
08a4ed
+	#  Specifies the maximum time in seconds that an
08a4ed
+	#  entry may be active.  If set to zero, means
08a4ed
+	#  "no timeout".  The default value is 0
08a4ed
 	maximum_timeout = 0
08a4ed
 
08a4ed
-	# key:
08a4ed
-	#	The key to use for the session database (which
08a4ed
-	#	holds the allocated ip's) normally it should
08a4ed
-	#	just be the nas ip/port (which is the default).
08a4ed
+	#  The key to use for the session database (which
08a4ed
+	#  holds the allocated ip's) normally it should
08a4ed
+	#  just be the nas ip/port (which is the default).
08a4ed
 	#
08a4ed
-	#	If your NAS sends the same value of NAS-Port
08a4ed
-	#	all requests, the key should be based on some
08a4ed
-	#	other attribute that is in ALL requests, AND
08a4ed
-	#	is unique to each machine needing an IP address.
08a4ed
-	#key = "%{NAS-IP-Address} %{NAS-Port}"
08a4ed
+	#  If your NAS sends the same value of NAS-Port
08a4ed
+	#  all requests, the key should be based on some
08a4ed
+	#  other attribute that is in ALL requests, AND
08a4ed
+	#  is unique to each machine needing an IP address.
08a4ed
+#	key = "%{NAS-IP-Address} %{NAS-Port}"
08a4ed
 }
08a4ed
commit 82d3d851e03fdc403c6694d5470905c489acb1b5
08a4ed
Author: Alan T. DeKok <aland@freeradius.org>
08a4ed
Date:   Sat Jan 18 15:58:28 2014 -0500
08a4ed
08a4ed
    Set the default length for the attributes
08a4ed
08a4ed
diff --git a/src/lib/valuepair.c b/src/lib/valuepair.c
08a4ed
index d1d1fca..ac955ad 100644
08a4ed
--- a/src/lib/valuepair.c
08a4ed
+++ b/src/lib/valuepair.c
08a4ed
@@ -109,6 +109,8 @@ VALUE_PAIR *pairalloc(TALLOC_CTX *ctx, DICT_ATTR const *da)
08a4ed
 	vp->op = T_OP_EQ;
08a4ed
 	vp->type = VT_NONE;
08a4ed
 
08a4ed
+	vp->length = da->flags.length;
08a4ed
+
08a4ed
 	talloc_set_destructor(vp, _pairfree);
08a4ed
 
08a4ed
 	return vp;