diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-23 04:05:48 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-23 04:05:48 +0100 | 
| commit | 90669749e3983993c667d40dad6215045139a711 (patch) | |
| tree | f017f3f216a1b3195c3ad596b147d39d44ef3ed3 /protocols | |
| parent | 03e6c520fc1f9d1fc3f94ff54adc18f725843828 (diff) | |
Fixed some still-leaky code in the MSN incoming status message handling.
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/msn/ns.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 3622efe0..dd9bff18 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -672,16 +672,16 @@ static int msn_ns_message( struct msn_handler_data *handler, char *msg, int msgl  	}  	else if( strcmp( cmd[0], "UBX" ) == 0 )  	{ -		struct xt_node *psm; +		struct xt_node *ubx, *psm;  		char *psm_text = NULL; -		psm = xt_from_string( msg ); -		if( psm && strcmp( psm->name, "Data" ) == 0 && -		    ( psm = xt_find_node( psm->children, "PSM" ) ) ) +		ubx = xt_from_string( msg ); +		if( ubx && strcmp( ubx->name, "Data" ) == 0 && +		    ( psm = xt_find_node( ubx->children, "PSM" ) ) )  			psm_text = psm->text;  		imcb_buddy_status_msg( ic, cmd[1], psm_text ); -		xt_free_node( psm ); +		xt_free_node( ubx );  	}  	else if( strcmp( cmd[0], "ADL" ) == 0 )  	{ | 
