Menu

#18 Bad cast in xdr_rec.c:xdrrec_getpos()

open
nobody
None
5
2012-11-20
2011-03-02
No

The cast of rstrm->tcp_handle in xdr_rec.c:xdrrec_getpos() to obtain a valid file descriptor for use with lseek() is incorrect.

The correct cast is *(int *)rstrm->tcp_handle.

Discussion

MongoDB Logo MongoDB