We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69611f7 commit e4416acCopy full SHA for e4416ac
nimble/host/mesh/src/testing.c
@@ -170,12 +170,14 @@ void bt_test_print_credentials(void)
170
171
console_printf("Friend cred: %d\n", i);
172
console_printf("\tNetKeyIdx: %04x\n",
173
- sub[i].net_idx);
174
- console_printf("\tNID: %02x\n", subnet->keys->msg.nid);
175
- console_printf("\tEncKey: %s\n",
176
- bt_hex(subnet->keys->msg.enc, 16));
177
- console_printf("\tPrivKey: %s\n",
178
- bt_hex(subnet->keys->msg.privacy, 16));
+ sub[i].net_idx);
+ if (subnet) {
+ console_printf("\tNID: %02x\n", subnet->keys->msg.nid);
+ console_printf("\tEncKey: %s\n",
+ bt_hex(subnet->keys->msg.enc, 16));
+ console_printf("\tPrivKey: %s\n",
179
+ bt_hex(subnet->keys->msg.privacy, 16));
180
+ }
181
}
182
183
0 commit comments