Navigation


Changeset 691:78b665400097 in freeDiameter for libfdcore/peers.c


Ignore:
Timestamp:
Jan 20, 2011, 7:44:27 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Cleanup all pthread_cleanup_push / pop pairs so that pop is always called after push, or ASSERT(0) is some grave errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/peers.c

    r688 r691  
    533533                int auth = 0;
    534534                pthread_cleanup_push(fd_cleanup_rwlock, &validators_rw);
    535                 CHECK_FCT_DO( ret = ((int(*)(struct peer_info *, int *, int (**)(struct peer_info *)))(v->o)) (&peer->p_hdr.info, &auth, &peer->p_cb2), goto out );
     535                CHECK_FCT_DO( ret = ((int(*)(struct peer_info *, int *, int (**)(struct peer_info *)))(v->o)) (&peer->p_hdr.info, &auth, &peer->p_cb2), );
    536536                pthread_cleanup_pop(0);
     537                if (ret)
     538                        goto out;
    537539                if (auth) {
    538540                        ret = (auth > 0) ? 0 : -1;
Note: See TracChangeset for help on using the changeset viewer.