X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsipoll.c;fp=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsipoll.c;h=0ecca665e31c2aa46e65cba5e24e0b46c2c5b3fd;hb=5861625ff2eaf1bd3a69ce488bd7d14f7b402432;hp=df71eaea377a03cf133be5d1c23d9a84ee6cb1e0;hpb=bf897297010df539909b7638d96557d41fd217b0;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/sipoll.c b/src/rmr/si/src/si95/sipoll.c index df71eae..0ecca66 100644 --- a/src/rmr/si/src/si95/sipoll.c +++ b/src/rmr/si/src/si95/sipoll.c @@ -59,14 +59,10 @@ extern int SIpoll( struct ginfo_blk *gptr, int msdelay ) struct timeval delay; // delay to use on select call struct sockaddr *uaddr; // pointer to udp address - gptr->sierr = SI_ERR_SHUTD; - if( gptr->flags & GIF_SHUTDOWN ) // cannot do if we should shutdown return( SI_ERROR ); // so just get out - gptr->sierr = SI_ERR_HANDLE; - if( gptr->magicnum != MAGICNUM ) // if not a valid ginfo block return( SI_ERROR ); @@ -156,7 +152,7 @@ extern int SIpoll( struct ginfo_blk *gptr, int msdelay ) SIaddress( uaddr, (void **) &buf, AC_TODOT ); status = (*cbptr)( gptr->cbtab[SI_CB_RDATA].cbdata, gptr->rbuf, status, buf ); SIcbstat( gptr, status, SI_CB_RDATA ); // handle status - free( buf ); + free( buf ); } // end if call back was defined } // end if status was ok free( uaddr ); @@ -190,7 +186,6 @@ extern int SIpoll( struct ginfo_blk *gptr, int msdelay ) if( gptr->flags & GIF_SHUTDOWN ) // we need to stop for some reason { - gptr->sierr = SI_ERR_SHUTD; // indicate error exit status status = SI_ERROR; // status should indicate to user to die SIshutdown( gptr ); // clean things up }