]> git.ipfire.org Git - thirdparty/systemd.git/commit
swap: check p->what for NULL
authorVito Caputo <vcaputo@pengaru.com>
Sat, 21 Mar 2020 05:47:38 +0000 (22:47 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Mar 2020 07:30:32 +0000 (08:30 +0100)
commitd4a3494e65946ab78647b5277adcabed0ec43da3
tree82f7f2fdbfeb39cbad479ab3eac304abef206b33
parent992622c4289ef7c956a7bfef5eb8e5ab93e43457
swap: check p->what for NULL

Commit 61f9cf4e4c introduced swap_get_parameters(s) but only
checked its return for NULL and not its ->what.

Fixes https://github.com/systemd/systemd/issues/15070
src/core/swap.c