mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 03:03:01 +00:00 
			
		
		
		
	lib: fix ls_prefix memory allocation
The wrong size is allocated for struct ls_prefix memory.
Fix ls_prefix memory allocation.
Fixes: b0c0b43348 ("lib: Update Link State Database")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
			
			
This commit is contained in:
		
							parent
							
								
									daa2567002
								
							
						
					
					
						commit
						fa0f9ae38b
					
				| @ -346,7 +346,7 @@ struct ls_prefix *ls_prefix_new(struct ls_node_id adv, struct prefix p) | ||||
| 	if (adv.origin == UNKNOWN) | ||||
| 		return NULL; | ||||
| 
 | ||||
| 	new = XCALLOC(MTYPE_LS_DB, sizeof(struct ls_attributes)); | ||||
| 	new = XCALLOC(MTYPE_LS_DB, sizeof(struct ls_prefix)); | ||||
| 	new->adv = adv; | ||||
| 	new->pref = p; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Louis Scalbert
						Louis Scalbert