mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
check pointer arg before dereferencing. a=r=(not built)
This commit is contained in:
parent
7f50eca4d0
commit
546de631d0
@ -61,6 +61,8 @@ NS_IMETHODIMP
|
||||
nsLDAPOperation::Init(nsILDAPConnection *aConnection,
|
||||
nsILDAPMessageListener *aMessageListener)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aConnection);
|
||||
|
||||
// so we know that the operation is not yet running (and therefore don't
|
||||
// try and call ldap_abandon_ext() on it) or remove it from the queue.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user