bgpd: Make the private AS number check 4 byte compatible.

Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index 49b65b6..613aa44 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1281,7 +1281,9 @@
       for (i = 0; i < seg->length; i++)
 	{
 	  if ( (seg->as[i] < BGP_PRIVATE_AS_MIN)
-	      || (seg->as[i] > BGP_PRIVATE_AS_MAX) )
+	      || (seg->as[i] > BGP_PRIVATE_AS_MAX &&
+                  seg->as[i] < BGP_PRIVATE_AS4_MIN)
+               || (seg->as[i] > BGP_PRIVATE_AS4_MAX))
 	    return 0;
 	}
       seg = seg->next;