diff libfdproto/messages.c @ 1212:c38bb8b69c43

Fix message rtd handling for extensions based on this data
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 17 Jun 2013 18:19:53 +0800
parents 165569e8cba8
children 4e52f009861a
line wrap: on
line diff
--- a/libfdproto/messages.c	Mon Jun 17 09:47:00 2013 +0800
+++ b/libfdproto/messages.c	Mon Jun 17 18:19:53 2013 +0800
@@ -1297,14 +1297,13 @@
 }
 
 /* Associate routing lists */
-int fd_msg_rt_associate( struct msg * msg, struct rt_data ** rtd )
+int fd_msg_rt_associate( struct msg * msg, struct rt_data * rtd )
 {
 	TRACE_ENTRY( "%p %p", msg, rtd );
 	
 	CHECK_PARAMS(  CHECK_MSG(msg) && rtd  );
 	
-	msg->msg_rtdata = *rtd;
-	*rtd = NULL;
+	msg->msg_rtdata = rtd;
 	
 	return 0;
 }
@@ -1316,7 +1315,6 @@
 	CHECK_PARAMS(  CHECK_MSG(msg) && rtd  );
 	
 	*rtd = msg->msg_rtdata;
-	msg->msg_rtdata = NULL;
 	
 	return 0;
 }	
"Welcome to our mercurial repository"