File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
applications/zpc/components/zwave/zwave_transports/s2/libs/zw-libs2/protocol Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1279,7 +1279,7 @@ S2_init_ctx(uint32_t home)
12791279 return 0 ;
12801280 }
12811281#endif
1282- memset (ctx , 0 , sizeof (struct S2 ));
1282+ explicit_bzero (ctx , sizeof (struct S2 ));
12831283
12841284 ctx -> my_home_id = home ;
12851285 ctx -> loaded_keys = 0 ;
@@ -1329,7 +1329,7 @@ void
13291329S2_destroy (struct S2 * p_context )
13301330{
13311331 CTX_DEF
1332- memset (ctxt , 0 , sizeof (struct S2 ));
1332+ explicit_bzero (ctxt , sizeof (struct S2 ));
13331333#ifndef SINGLE_CONTEXT
13341334 free (ctxt );
13351335#endif
@@ -2054,4 +2054,4 @@ static void S2_send_nls_node_list_report(struct S2* p_context, s2_connection_t*
20542054 S2_send_data (ctxt , con , buf , SECURITY_2_V2_NLS_NODE_LIST_REPORT_LENGTH );
20552055}
20562056
2057- #endif
2057+ #endif
You can’t perform that action at this time.
0 commit comments