Diff between 4b704fb45a69ed6e745c5d01cca9622ede4bf522 and e040109302d841750b767e88c26a48e6f832edf3

Changed Files

File Additions Deletions Status
src/shared/csip.c +3 -0 modified

Full Patch

diff --git a/src/shared/csip.c b/src/shared/csip.c
index 094f448..7e90a3c 100644
--- a/src/shared/csip.c
+++ b/src/shared/csip.c
@@ -810,6 +810,9 @@ bool bt_csip_get_sirk(struct bt_csip *csip, uint8_t *type,
 	if (!csis)
 		return false;
 
+	if (!csis->sirk_val)
+		return false;
+
 	if (type)
 		*type = csis->sirk_val->type;