From 87f54463117654af48d6027986c2b21831d41616 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 24 Oct 2018 21:00:15 +0200 Subject: string-util: introduce explicit_zero_safe() The only real difference is that this wrapper can deal with NULL pointer arguments, but only if the length is also zero. CID 1396277 --- src/reply-password/reply-password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reply-password') diff --git a/src/reply-password/reply-password.c b/src/reply-password/reply-password.c index d085da9f08..122047ffff 100644 --- a/src/reply-password/reply-password.c +++ b/src/reply-password/reply-password.c @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) { r = send_on_socket(fd, argv[2], packet, length); finish: - explicit_bzero(packet, length); + explicit_bzero_safe(packet, length); return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } -- cgit v1.2.1