[libvirt] [PATCH] sanlock: Use STREQ_NULLABLE instead of STREQ on strings that may be null

Eric Blake eblake at redhat.com
Wed Mar 7 16:04:46 UTC 2012


On 03/07/2012 07:30 AM, Peter Krempa wrote:
> The function sanlock_inquire can return NULL in the state string if the
> message consists only of a header. The return value is arbitrary and
> sent by the server. We should proceed carefully while touching such
> pointers.
> ---
>  src/locking/lock_driver_sanlock.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120307/b7061ec3/attachment-0001.sig>


More information about the libvir-list mailing list