changeset 407:7029e6b587ac

Fix warning
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 08 Jul 2010 15:15:59 +0900
parents 345f3541df81
children 9a9a9e1ed4cb
files freeDiameter/cnxctx.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c	Thu Jul 08 14:59:08 2010 +0900
+++ b/freeDiameter/cnxctx.c	Thu Jul 08 15:15:59 2010 +0900
@@ -269,7 +269,7 @@
 	/* SCTP-specific handlings */
 	if (cli->cc_proto == IPPROTO_SCTP) {
 		/* Retrieve the number of streams */
-		CHECK_FCT_DO( fd_sctp_get_str_info( cli->cc_socket, &cli->cc_sctp_para.str_in, &cli->cc_sctp_para.str_out, NULL ), goto error );
+		CHECK_FCT_DO( fd_sctp_get_str_info( cli->cc_socket, &cli->cc_sctp_para.str_in, &cli->cc_sctp_para.str_out, NULL ), {fd_cnx_destroy(cli); return NULL;} );
 		if (cli->cc_sctp_para.str_out < cli->cc_sctp_para.str_in)
 			cli->cc_sctp_para.pairs = cli->cc_sctp_para.str_out;
 		else
@@ -280,9 +280,6 @@
 #endif /* DISABLE_SCTP */
 
 	return cli;
-error:
-	fd_cnx_destroy(cli);
-	return NULL;
 }
 
 /* Client side: connect to a remote server -- cancelable */
"Welcome to our mercurial repository"