Changeset 1078:74bba7975864 in freeDiameter for libfdcore/cnxctx.c
- Timestamp:
- Apr 30, 2013, 4:37:57 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/cnxctx.c
r1029 r1078 644 644 } 645 645 646 CHECK_SYS_DO( clock_gettime(CLOCK_REALTIME, &conn->cc_tls_para.recvon), /* continue */ );647 648 646 return ret; 649 647 } … … 701 699 ssize_t ret = 0; 702 700 size_t received = 0; 703 struct timespec recv_on;704 701 705 702 do { … … 738 735 received += ret; 739 736 } 740 741 /* Piggy-tail the timestamp of reception */742 CHECK_SYS_DO( clock_gettime(CLOCK_REALTIME, &recv_on), /* continue */ );743 memcpy(newmsg + length, &recv_on, sizeof(struct timespec));744 737 745 738 /* We have received a complete message, pass it to the daemon */ … … 930 923 int fd_tls_rcvthr_core(struct cnxctx * conn, gnutls_session_t session) 931 924 { 932 struct timespec * rcv_on = &conn->cc_tls_para.recvon;933 934 925 #ifndef DISABLE_SCTP 935 926 void * ptr = gnutls_transport_get_ptr(session); 936 927 if (ptr != conn) { 937 928 struct sctps_ctx * ctx = (struct sctps_ctx *) ptr; 938 rcv_on = &ctx->recvon;939 929 } 940 930 #endif /* DISABLE_SCTP */ … … 984 974 received += ret; 985 975 } 986 987 /* The timestamp of the last TLS chunk received for this rebuilt message lives close to the session pointer, we piggyback it */988 memcpy(newmsg + length, rcv_on, sizeof(struct timespec));989 976 990 977 /* We have received a complete message, pass it to the daemon */
Note: See TracChangeset
for help on using the changeset viewer.