]> git.ipfire.org Git - thirdparty/dbus.git/commit
nonce: Don't try to rmdir(NULL) on OOM
authorSimon McVittie <smcv@collabora.com>
Thu, 12 Jul 2018 12:32:10 +0000 (13:32 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 2 Aug 2018 16:16:04 +0000 (17:16 +0100)
commit5ccd36cecb91b55c30626d84db4967bf64b8aceb
treeac79ce6356f3be3f59d38a31a3a5604e93d87048
parent9cf2d308ce289293932d40d70005e3e4e67f64d1
nonce: Don't try to rmdir(NULL) on OOM

If re-initializing the string fails, it will be left in a state
where it has a length of 0 and a NULL buffer. That's valid to
"free", but not valid to pass to rmdir().

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
(cherry picked from commit 294e8b0b672c8ffdcb8d9227f114846433659864)
dbus/dbus-nonce.c