summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 5f0b4d5e20..4cfeead887 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1676,6 +1676,9 @@ zread_mpls_labels (int command, struct zserv *client, u_short length,
in_label = stream_getl (s);
out_label = stream_getl (s);
+ if (! mpls_enabled)
+ return;
+
if (command == ZEBRA_MPLS_LABELS_ADD)
{
mpls_lsp_install (zvrf, type, in_label, out_label, gtype, &gate,