CID: 10
Checker: FORWARD_NULL (help)
File: services/lck.c
Function: message_handler_req_exec_lck_resourcelock
Description: Variable "resource_lock" tracked as NULL was passed to a
function that dereferences it.

in services/lck.c
        resource_lock = malloc (sizeof (struct resource_lock));
        if (resource_lock == 0) {
                lock_response_deliver (&req_exec_lck_resourcelock->source,
                        resource_lock,
                        SA_AIS_ERR_NO_MEMORY);
                goto error_exit;
        }

lock_response_deliver() dereferences resource_lock!

Can I just take the call to lock_response_deliver() out?

-Angus
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to