bugfix/fix the crash when using legacy paring with wrong pin code (v4.3) See merge request espressif/esp-idf!15298