X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsiconnect.c;h=114e8733fa13105da1aa7441d2f72bb0376373a6;hb=5861625ff2eaf1bd3a69ce488bd7d14f7b402432;hp=842207f329cb1a517962f809103ffe153d376075;hpb=0d4def6c7b673f3be486338ced65ccdd25a859ed;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/siconnect.c b/src/rmr/si/src/si95/siconnect.c index 842207f..114e873 100644 --- a/src/rmr/si/src/si95/siconnect.c +++ b/src/rmr/si/src/si95/siconnect.c @@ -62,24 +62,20 @@ extern int SIconnect( struct ginfo_blk *gptr, char *abuf ) { return SI_ERROR; } - gptr->sierr = SI_ERR_HANDLE; if( gptr->magicnum != MAGICNUM ) { // no cookie -- no connection return SI_ERROR; } } - gptr->sierr = SI_ERR_TPORT; tpptr = SIconn_prep( gptr, TCP_DEVICE, abuf, 0 ); // create tp struct, and socket. get peer address 0 == any family that suits the addr if( tpptr != NULL ) { taddr = tpptr->paddr; - gptr->sierr = SI_ERR_TP; errno = 0; if( connect( tpptr->fd, taddr, tpptr->palen ) != 0 ) { close( tpptr->fd ); // clean up fd and tp_block SItrash( TP_BLK, tpptr ); // free the trasnsport block fd = SI_ERROR; // send bad session id num back } else { // connect ok - gptr->sierr = 0; tpptr->flags |= TPF_SESSION; // indicate we have a session here tpptr->next = gptr->tplist; // add block to the list if( tpptr->next != NULL ) {