X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsisendt.c;h=793525162db605fe0c7d02d23827e92b1b3fa9a7;hb=9c2f0c74adb03a21646742702813b6ba4a4ae288;hp=8a4d5f06c7c86f0b2da8567b40e24a3da074d802;hpb=5861625ff2eaf1bd3a69ce488bd7d14f7b402432;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/sisendt.c b/src/rmr/si/src/si95/sisendt.c index 8a4d5f0..7935251 100644 --- a/src/rmr/si/src/si95/sisendt.c +++ b/src/rmr/si/src/si95/sisendt.c @@ -66,9 +66,8 @@ extern int SIsendt( struct ginfo_blk *gptr, int fd, char *ubuf, int ulen ) { tpptr = gptr->tp_map[fd]; } else { // list should be locked before traversing - for( tpptr = gptr->tplist; tpptr != NULL && tpptr->fd != fd; tpptr = tpptr->next ); // find the block if out of map's range + for( tpptr = gptr->tplist; tpptr != NULL && tpptr->fd != fd; tpptr = tpptr->next ) ; // find the block if out of map's range } - if( tpptr != NULL ) { if( (fd = tpptr->fd) < 0 ) { // fd user given might not be real, and this might be closed already errno = EBADFD;