Skip to content

Commit 943aab1

Browse files
committed
Clean up old bundle index when NULL bundle is attached
1 parent 653d2ed commit 943aab1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFiClientSecure/src/WiFiClientSecure.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ void WiFiClientSecure::setCACert (const char *rootCA)
272272
esp_crt_bundle_set(bundle);
273273
_use_ca_bundle = true;
274274
} else {
275+
esp_crt_bundle_detach(NULL);
275276
_use_ca_bundle = false;
276277
}
277278
}

0 commit comments

Comments
 (0)