mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 03:30:07 +00:00 
			
		
		
		
	Merge pull request #15857 from FRRouting/mergify/bp/stable/9.1/pr-15848
pimd: fix crash unconfiguring rp keepalive timer (backport #15848)
This commit is contained in:
		
						commit
						fe88c8425f
					
				| @ -286,8 +286,15 @@ int pim_process_no_rp_kat_cmd(struct vty *vty) | ||||
| 		sizeof(rs_timer_xpath)); | ||||
| 
 | ||||
| 	/* RFC4601 */ | ||||
| 	v = yang_dnode_get_uint16(vty->candidate_config->dnode, "%s", | ||||
| 				  rs_timer_xpath); | ||||
| 	/* Check if register suppress time is configured or assigned
 | ||||
| 	 * the default register suppress time. | ||||
| 	 */ | ||||
| 	if (yang_dnode_exists(vty->candidate_config->dnode, rs_timer_xpath)) | ||||
| 		v = yang_dnode_get_uint16(vty->candidate_config->dnode, "%s", | ||||
| 					  rs_timer_xpath); | ||||
| 	else | ||||
| 		v = PIM_REGISTER_SUPPRESSION_TIME_DEFAULT; | ||||
| 
 | ||||
| 	v = 3 * v + PIM_REGISTER_PROBE_TIME_DEFAULT; | ||||
| 	if (v > UINT16_MAX) | ||||
| 		v = UINT16_MAX; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Donatas Abraitis
						Donatas Abraitis