Navigation


Changeset 407:7029e6b587ac in freeDiameter


Ignore:
Timestamp:
Jul 8, 2010, 3:15:59 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/cnxctx.c

    r403 r407  
    270270        if (cli->cc_proto == IPPROTO_SCTP) {
    271271                /* Retrieve the number of streams */
    272                 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 );
     272                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;} );
    273273                if (cli->cc_sctp_para.str_out < cli->cc_sctp_para.str_in)
    274274                        cli->cc_sctp_para.pairs = cli->cc_sctp_para.str_out;
     
    281281
    282282        return cli;
    283 error:
    284         fd_cnx_destroy(cli);
    285         return NULL;
    286283}
    287284
Note: See TracChangeset for help on using the changeset viewer.