From 6372a7881ed11404babf5b7d8bff7e661185074e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 13 Mar 2003 19:02:21 +0000 Subject: [PATCH] STABLE12-rx-init-mutex-before-calling-getudpsocket-20030313 pointed out by cg2v@andrew.cmu.edu (cherry picked from commit 7187d07423c1f3b4db3abc57a44f28c394a9e8ee) --- src/rx/rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index 92b7d099a..c6acf7681 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -397,6 +397,8 @@ int rx_Init(u_int port) rxi_InitializeThreadSupport(); #endif + MUTEX_INIT(&rx_stats_mutex, "rx_stats_mutex",MUTEX_DEFAULT,0); + /* Allocate and initialize a socket for client and perhaps server * connections. */ @@ -411,7 +413,6 @@ int rx_Init(u_int port) #ifdef RX_LOCKS_DB rxdb_init(); #endif /* RX_LOCKS_DB */ - MUTEX_INIT(&rx_stats_mutex, "rx_stats_mutex",MUTEX_DEFAULT,0); MUTEX_INIT(&rx_rpc_stats, "rx_rpc_stats",MUTEX_DEFAULT,0); MUTEX_INIT(&rx_freePktQ_lock, "rx_freePktQ_lock",MUTEX_DEFAULT,0); MUTEX_INIT(&freeSQEList_lock, "freeSQEList lock",MUTEX_DEFAULT,0); -- 2.39.5