Explorar o código

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

Krzysztof Haładyn (krzys_h) %!s(int64=3) %!d(string=hai) anos
pai
achega
5134f44c09
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
     }
 }