changeset 359:9fd830f8621a

Fix undefined symbol
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 20 May 2009 15:19:14 +0900
parents 505a9ee1244b
children 2206c7f2945a
files extensions/radius_gw/rg_utils.c extensions/radius_gw/rgw_servers.c
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/radius_gw/rg_utils.c	Wed May 20 15:14:31 2009 +0900
+++ b/extensions/radius_gw/rg_utils.c	Wed May 20 15:19:14 2009 +0900
@@ -117,9 +117,6 @@
 {
 	struct rg_list * attr;
 	
-	if ( ! TRACE_BOOL(level) )
-		return;
-	
 	log_debug("------ RADIUS msg dump -------\n");
 	log_debug("   id: %02hhx, code: %hhd (%s)\n", msg->identifier, msg->code, rg_msg_code_str(msg->code));
 	log_debug(" auth: %02hhx %02hhx %02hhx %02hhx  %02hhx %02hhx %02hhx %02hhx\n",
--- a/extensions/radius_gw/rgw_servers.c	Wed May 20 15:14:31 2009 +0900
+++ b/extensions/radius_gw/rgw_servers.c	Wed May 20 15:19:14 2009 +0900
@@ -154,7 +154,8 @@
 		/* Free the buffer, we don't need it anymore */
 		free(buf);
 		
-		rg_msg_dump(FULL, msg);
+		if (TRACE_BOOL(FULL))
+			rg_msg_dump(FULL, msg);
 		
 		/* Search the associated client definition, if any */
 		CHECK_FCT_DO( rgw_clients_search((struct sockaddr *) &from, &nas_info),
"Welcome to our mercurial repository"