diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-07-03 13:17:01 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-07-03 13:17:01 +0200 |
commit | c9ec8b08b724e1e610d9099d5522f3a9aba3cf4e (patch) | |
tree | 9f2b26ac7306c85e6ae4d531f4c2a3a7bebe8d07 | |
parent | 1b0e45e5c4bbaa6154b22fac6706f28d2ca9c305 (diff) | |
download | external_libsamsung-ipc-c9ec8b08b724e1e610d9099d5522f3a9aba3cf4e.zip external_libsamsung-ipc-c9ec8b08b724e1e610d9099d5522f3a9aba3cf4e.tar.gz external_libsamsung-ipc-c9ec8b08b724e1e610d9099d5522f3a9aba3cf4e.tar.bz2 |
sec: Cleanup memory before use
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | samsung-ipc/sec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index 1570836..ae23cb8 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -92,6 +92,7 @@ int ipc_sec_change_locking_pw_setup(struct ipc_sec_change_locking_pw_data *data, if (data == NULL) return -1; + memset(data, 0, sizeof(struct ipc_sec_change_locking_pw_data)); data->facility_type = facility_type; if (password_old != NULL) { |