Commit 5b58bc41b7 for frr

commit 5b58bc41b7b5b8caa61c3c705830c04b047f611a
Author: Vic Lan <vic.lan@pica8.com>
Date:   Sat Sep 12 21:44:38 2026 +0800

    bgp: fix wrong comparison function of rfapi

    Signed-off-by: Vic Lan <vic.lan@pica8.com>

diff --git a/bgpd/rfapi/rfapi_rib.c b/bgpd/rfapi/rfapi_rib.c
index d04ab17dca..16715565ba 100644
--- a/bgpd/rfapi/rfapi_rib.c
+++ b/bgpd/rfapi/rfapi_rib.c
@@ -451,7 +451,7 @@ static int bgp_tea_options_cmp(struct bgp_tea_options *a,
 	if (a->type != b->type)
 		return (a->type - b->type);
 	if (a->length != b->length)
-		return (a->length = b->length);
+		return (a->length - b->length);
 	if ((rc = memcmp(a->value, b->value, a->length)))
 		return rc;
 	if (!a->next != !b->next) { /* logical xor */