sec: Cleanup memory before use
authorPaul Kocialkowski <contact@paulk.fr>
Thu, 3 Jul 2014 11:17:01 +0000 (13:17 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Thu, 3 Jul 2014 11:17:01 +0000 (13:17 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
samsung-ipc/sec.c

index 1570836..ae23cb8 100644 (file)
@@ -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) {