Navigation


Changeset 29:5ba91682f0bc in freeDiameter for freeDiameter/server.c


Ignore:
Timestamp:
Oct 28, 2009, 3:19:50 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a test for cnxctx (tbc) and fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/server.c

    r28 r29  
    116116        /* Handshake if we are a secure server port, or start clear otherwise */
    117117        if (s->secur) {
    118                 int ret = fd_cnx_handshake(c->conn, GNUTLS_SERVER, NULL);
     118                int ret = fd_cnx_handshake(c->conn, GNUTLS_SERVER, NULL, NULL);
    119119                if (ret != 0) {
    120120                        if (TRACE_BOOL(INFO)) {
     
    153153       
    154154        /* Finally, pass the information to the peers module which will handle it next */
    155         CHECK_FCT_DO( fd_peer_handle_newCER( &msg, &c->conn, s->secur ), goto fatal_error );
     155        pthread_cleanup_push((void *)fd_cnx_destroy, c->conn);
     156        pthread_cleanup_push((void *)fd_msg_free, msg);
     157        CHECK_FCT_DO( fd_peer_handle_newCER( &msg, &c->conn ), goto cleanup );
     158        pthread_cleanup_pop(0);
     159        pthread_cleanup_pop(0);
    156160       
    157161        /* The end, we cleanup the client structure */
Note: See TracChangeset for help on using the changeset viewer.