src/client.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit cd62001cba5793a93678060e42f86d32e32707e4
Author: David Teigland <teigland(a)redhat.com>
Date: Tue Jul 9 14:11:20 2013 -0500
sanlock: check for null arg in sanlock_request
Signed-off-by: David Teigland <teigland(a)redhat.com>
diff --git a/src/client.c b/src/client.c
index 38a9692..6ecf431 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1044,6 +1044,9 @@ int sanlock_request(uint32_t flags, uint32_t force_mode,
{
int fd, rv, datalen;
+ if (!res)
+ return -EINVAL;
+
datalen = sizeof(struct sanlk_resource) +
sizeof(struct sanlk_disk) * res->num_disks;
Show replies by date