olsrd-quagga: Exit if unsupported packet version is selected
[olsrd.git] / lib / quagga / src / packet.c
index e3d5cbc..3743626 100644 (file)
@@ -48,6 +48,7 @@ unsigned char
       t += sizeof cmd;
       break;
     default:
+      olsr_exit("(QUAGGA) Unsupported zebra packet version!\n", EXIT_FAILURE);
       break;
   }
   *t++ = r->type;
@@ -63,6 +64,7 @@ unsigned char
       t += sizeof safi;
       break;
     default:
+      olsr_exit("(QUAGGA) Unsupported zebra packet version!\n", EXIT_FAILURE);
       break;
   }
   *t++ = r->prefixlen;
@@ -129,6 +131,7 @@ unsigned char
       pnt += sizeof cmd;
       break;
     default:
+      olsr_exit("(QUAGGA) Unsupported zebra packet version!\n", EXIT_FAILURE);
       break;
   }
   *pnt++ = type;