mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmetad: do not deref NULL pointer
Call log only for req.cft != NULL.
This commit is contained in:
parent
3685701529
commit
ed53b4b674
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.98
|
Version 2.02.98
|
||||||
=================================
|
=================================
|
||||||
|
Fix dereference of NULL in lvmetad error path logging.
|
||||||
Fix buffer memory leak in lvmetad logging.
|
Fix buffer memory leak in lvmetad logging.
|
||||||
Use 'ignore' discards for thin metadata created with older versions.
|
Use 'ignore' discards for thin metadata created with older versions.
|
||||||
Use proper condition to check for unsupported discards settings.
|
Use proper condition to check for unsupported discards settings.
|
||||||
|
@ -389,10 +389,12 @@ static void *client_thread(void *baton)
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
req.cft = dm_config_from_string(req.buffer);
|
req.cft = dm_config_from_string(req.buffer);
|
||||||
|
|
||||||
if (!req.cft)
|
if (!req.cft)
|
||||||
fprintf(stderr, "error parsing request:\n %s\n", req.buffer);
|
fprintf(stderr, "error parsing request:\n %s\n", req.buffer);
|
||||||
|
else
|
||||||
|
daemon_log_cft(b->s.log, DAEMON_LOG_WIRE, "<- ", req.cft->root);
|
||||||
|
|
||||||
daemon_log_cft(b->s.log, DAEMON_LOG_WIRE, "<- ", req.cft->root);
|
|
||||||
res = builtin_handler(b->s, b->client, req);
|
res = builtin_handler(b->s, b->client, req);
|
||||||
|
|
||||||
if (res.error == EPROTO) /* Not a builtin, delegate to the custom handler. */
|
if (res.error == EPROTO) /* Not a builtin, delegate to the custom handler. */
|
||||||
|
Loading…
Reference in New Issue
Block a user