diff options
author | David Lamparter <equinox@diac24.net> | 2017-07-06 19:35:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 19:35:06 +0200 |
commit | 440b450f7767276f4932a17aa8866e071a2ab425 (patch) | |
tree | 731895f9e05a1a91d29f5c2581550ad31708ae47 | |
parent | Merge pull request #781 from opensourcerouting/vty-out-bufresize (diff) | |
parent | zebra: fix mpls_str2label() (diff) | |
download | frr-440b450f7767276f4932a17aa8866e071a2ab425.tar.xz frr-440b450f7767276f4932a17aa8866e071a2ab425.zip |
Merge pull request #777 from qlyoung/fix-mpls-str2label
zebra: fix mpls_str2label()
-rw-r--r-- | zebra/zebra_mpls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index e08ff08cf..93844ee2a 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -1774,7 +1774,7 @@ mpls_str2label (const char *label_str, u_int8_t *num_labels, if (!rc) { - *num_labels = i + 1; + *num_labels = i; memcpy (labels, pl, *num_labels * sizeof (mpls_label_t)); } |