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 /zebra/zebra_mpls.c | |
| parent | 37892613f005bfc7a38a2fe3b0044bce0d659839 (diff) | |
| parent | a79d6ebb485f5bb81d576e6d88bf2b00f524d264 (diff) | |
Merge pull request #777 from qlyoung/fix-mpls-str2label
zebra: fix mpls_str2label()
Diffstat (limited to 'zebra/zebra_mpls.c')
| -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 e08ff08cf6..93844ee2a6 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)); } |
