Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11178
Modified Files: operation.c Log Message: Resolves: #475899 Summary: extensible filter having range operation crashes the server Description: we should prevent accessing the inside of NULL pointer.
Index: operation.c =================================================================== RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/operation.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- operation.c 15 Oct 2008 06:30:05 -0000 1.7 +++ operation.c 11 Dec 2008 00:08:18 -0000 1.8 @@ -55,9 +55,11 @@ { int op_status;
- op_status = pb->pb_op->o_status; - - return( op_status == SLAPI_OP_STATUS_ABANDONED ); + if (pb && pb->pb_op) { + op_status = pb->pb_op->o_status; + return( op_status == SLAPI_OP_STATUS_ABANDONED ); + } + return 0; }
void
389-commits@lists.fedoraproject.org