Преглед изворни кода

nfc: Fix crash when using debug PCAP trace (#2338)

Krzysztof Haładyn (krzys_h) пре 3 година
родитељ
комит
5134f44c09
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      lib/nfc/helpers/reader_analyzer.c

+ 1 - 0
lib/nfc/helpers/reader_analyzer.c

@@ -159,6 +159,7 @@ void reader_analyzer_stop(ReaderAnalyzer* instance) {
     }
     if(instance->pcap) {
         nfc_debug_pcap_free(instance->pcap);
+        instance->pcap = NULL;
     }
 }