Changeset 541 for trunk/src/sh_err_log.c
- Timestamp:
- Jan 16, 2019, 11:57:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_err_log.c
r516 r541 743 743 current->service_failure = 0; 744 744 current->log_start = S_TRUE; 745 memset(current->sigkey_old, (int)'\0', KEY_LEN+1);746 memset(current->sigkey_new, (int)'\0', KEY_LEN+1);747 memset(current->crypto, (int)'\0', KEY_LEN+1);745 memset(current->sigkey_old, 0, KEY_LEN+1); 746 memset(current->sigkey_new, 0, KEY_LEN+1); 747 memset(current->crypto, 0, KEY_LEN+1); 748 748 current->next = logfile_list; 749 749 logfile_list = current; … … 944 944 945 945 946 memset (crypto, (int) '\0', KEY_LEN);946 memset (crypto, 0, KEY_LEN); 947 947 sh.flag.log_start = S_FALSE; 948 948 current->log_start = S_FALSE; … … 1046 1046 /* --- Clean up and free record. --- 1047 1047 */ 1048 memset (log_msg.msg, (int)'\0', (size_t)(status + 2*KEY_LEN + 32));1049 memset (log_msg.signature, (int)'\0', KEY_LEN);1048 memset (log_msg.msg, 0, (size_t)(status + 2*KEY_LEN + 32)); 1049 memset (log_msg.signature, 0, KEY_LEN); 1050 1050 (void) sh_unix_munlock (log_msg.msg, 1051 1051 (size_t)(status + 2*KEY_LEN + 32));
Note:
See TracChangeset
for help on using the changeset viewer.