summaryrefslogtreecommitdiff
path: root/src/reply-password
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-24 21:00:15 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-24 21:00:15 +0200
commit87f54463117654af48d6027986c2b21831d41616 (patch)
tree39c85be4d15ebf142c380a1fe4881ca4bc0ba4da /src/reply-password
parent7388cea30d676c4c2f8cb803f28d16470b35d015 (diff)
downloadsystemd-87f54463117654af48d6027986c2b21831d41616.tar.gz
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
Diffstat (limited to 'src/reply-password')
-rw-r--r--src/reply-password/reply-password.c2
1 files changed, 1 insertions, 1 deletions
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;
}