Navigation


Changeset 182:9ed2e3ce4434 in freeDiameter


Ignore:
Timestamp:
Feb 4, 2010, 4:19:52 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Cleaner error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/cnxctx.c

    r156 r182  
    292292       
    293293        /* Once the socket is created successfuly, prepare the remaining of the cnx */
    294         CHECK_MALLOC_DO( cnx = fd_cnx_init(1), { shutdown(sock, SHUT_RDWR); return NULL; } );
     294        CHECK_MALLOC_DO( cnx = fd_cnx_init(1), { shutdown(sock, SHUT_RDWR); close(sock); return NULL; } );
    295295       
    296296        cnx->cc_socket = sock;
Note: See TracChangeset for help on using the changeset viewer.