mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 18:19:48 +00:00 
			
		
		
		
	pbrd: fix interface compare usage
Don't use `strncmp` when we expect to match the whole string. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
		
							parent
							
								
									5bcc6b469c
								
							
						
					
					
						commit
						024e37fd87
					
				| @ -408,8 +408,7 @@ struct pbr_map_sequence *pbrms_lookup_unique(uint32_t unique, char *ifname, | ||||
| 
 | ||||
| 	RB_FOREACH (pbrm, pbr_map_entry_head, &pbr_maps) { | ||||
| 		for (ALL_LIST_ELEMENTS_RO(pbrm->incoming, inode, pmi)) { | ||||
| 			if (strncmp(pmi->ifp->name, ifname, INTERFACE_NAMSIZ) | ||||
| 			    != 0) | ||||
| 			if (strcmp(pmi->ifp->name, ifname) != 0) | ||||
| 				continue; | ||||
| 
 | ||||
| 			if (ppmi) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rafael Zalamena
						Rafael Zalamena