Navigation


Changeset 191:de80f6a76c4f in freeDiameter for include


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

Another attempt to workround the crash issue...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r184 r191  
    522522static __inline__ void fd_cleanup_socket(void * sockptr)
    523523{
    524         if (sockptr) {
     524        if (sockptr && (*(int *)sockptr > 0)) {
    525525                CHECK_SYS_DO( close(*(int *)sockptr), /* ignore */ );
    526526                *(int *)sockptr = -1;
Note: See TracChangeset for help on using the changeset viewer.