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)
1279
1279
return 0 ;
1280
1280
}
1281
1281
#endif
1282
- memset (ctx , 0 , sizeof (struct S2 ));
1282
+ explicit_bzero (ctx , sizeof (struct S2 ));
1283
1283
1284
1284
ctx -> my_home_id = home ;
1285
1285
ctx -> loaded_keys = 0 ;
@@ -1329,7 +1329,7 @@ void
1329
1329
S2_destroy (struct S2 * p_context )
1330
1330
{
1331
1331
CTX_DEF
1332
- memset (ctxt , 0 , sizeof (struct S2 ));
1332
+ explicit_bzero (ctxt , sizeof (struct S2 ));
1333
1333
#ifndef SINGLE_CONTEXT
1334
1334
free (ctxt );
1335
1335
#endif
@@ -2054,4 +2054,4 @@ static void S2_send_nls_node_list_report(struct S2* p_context, s2_connection_t*
2054
2054
S2_send_data (ctxt , con , buf , SECURITY_2_V2_NLS_NODE_LIST_REPORT_LENGTH );
2055
2055
}
2056
2056
2057
- #endif
2057
+ #endif
You can’t perform that action at this time.
0 commit comments