Add safe connect, fix possible seg fault in RTC
[ric-plt/lib/rmr.git] / src / rmr / si / src / si95 / sinewses.c
index 182fa6a..6e439de 100644 (file)
@@ -61,7 +61,7 @@ extern int SInewsession( struct ginfo_blk *gptr, struct tp_blk *tpptr ) {
 
        newtp = SInew( TP_BLK );                              //  get a new tp block for the session
        if( newtp == NULL ) {
-               close( status );                                                // must disconnect the other side
+               CLOSE( status );                                                // must disconnect the other side
                free( addr );
                return SI_ERROR;
        }