X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsisendt.c;fp=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsisendt.c;h=752a9554caaac6bdd9cb028f78674a07587b46b9;hb=955ce64d08bd90a8fe30e3033ece95a0cf08d78b;hp=26c5f9367d175332c1f4e48cba7493592e2f2816;hpb=834d6c773cb93b454b91e8e0f67ad3ee915d7e3e;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 26c5f93..752a955 100644 --- a/src/rmr/si/src/si95/sisendt.c +++ b/src/rmr/si/src/si95/sisendt.c @@ -69,7 +69,7 @@ extern int SIsendt( struct ginfo_blk *gptr, int fd, char *ubuf, int ulen ) { 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 + if( (fd = tpptr->fd) < 0 || (fd = tpptr->fd) >= FD_SETSIZE ) { // fd user given might not be real, and this might be closed already errno = EBADFD; return SI_ERROR; }