Navigation


Changeset 896:b13359ace625 in freeDiameter for libfdcore


Ignore:
Timestamp:
Dec 1, 2012, 7:04:16 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Condition the use of sctps_ctx with #ifndef DISABLE_SCTP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/cnxctx.c

    r894 r896  
    927927int fd_tls_rcvthr_core(struct cnxctx * conn, gnutls_session_t session)
    928928{
    929         struct timespec * rcv_on;
    930        
     929        struct timespec * rcv_on = &conn->cc_tls_para.recvon;
     930       
     931#ifndef DISABLE_SCTP
    931932        void * ptr = gnutls_transport_get_ptr(session);
    932         if (ptr == conn) {
    933                 rcv_on = &conn->cc_tls_para.recvon;
    934         } else {
     933        if (ptr != conn) {
    935934                struct sctps_ctx * ctx = (struct sctps_ctx *) ptr;
    936935                rcv_on = &ctx->recvon;
    937936        }
     937#endif /* DISABLE_SCTP */
    938938       
    939939       
Note: See TracChangeset for help on using the changeset viewer.