There was an error while loading. Please reload this page.
1 parent 58fdd5a commit 238722aCopy full SHA for 238722a
1 file changed
lib/bt/cert.c
@@ -328,6 +328,13 @@ static void gateway_server_cert_write_start(struct bt_conn *conn)
328
}
329
node->packetizer =
330
pouch_gatt_packetizer_start_callback(server_cert_fill_cb, node->server_cert_ctx);
331
+ if (node->packetizer == NULL)
332
+ {
333
+ LOG_ERR("Failed to start packetizer");
334
+ server_cert_cleanup(conn);
335
+ pouch_gateway_bt_finished(conn);
336
+ return;
337
+ }
338
339
write_server_cert_characteristic(conn);
340
0 commit comments