Revert "PUD: packetReceivedFromOlsr should be unregistered on stop"
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 17 Apr 2012 12:40:31 +0000 (14:40 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 17 Apr 2012 12:41:30 +0000 (14:41 +0200)
This reverts commit 9b434d5d4aaefbccca0a31dffd3545955b31b518.

It introduces a segfault and it appears that nobody else calls
the olsr_parser_remove_function function.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/pud.c

index 9492b99..8c1a13d 100644 (file)
@@ -350,7 +350,6 @@ bool initPud(void) {
  the NMEA parser.
  */
 void closePud(void) {
-       olsr_parser_remove_function(&packetReceivedFromOlsr, PUD_OLSR_MSG_TYPE);
        closeNetworkInterfaces();
        stopReceiver();
        destroyDeDupList(&deDupList);