mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	get_key_material_https: removed bogus free() call
The get_key_material_https() function error code path had a bogus free() call, either resulting in double-free or free() of undefined pointer. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ahelenia Ziemia<C5><84>ska <nabijaczleweli@nabijaczleweli.xyz> Co-authored-by: Harry Sintonen <sintonen@iki.fi> Signed-off-by: Harry Sintonen <sintonen@iki.fi> Closes #13198
This commit is contained in:
		
							parent
							
								
									7b215d93bc
								
							
						
					
					
						commit
						0bebcbcf5e
					
				| @ -606,7 +606,6 @@ get_key_material_https(libzfs_handle_t *hdl, const char *uri, | |||||||
| kfdok: | kfdok: | ||||||
| 	if ((key = fdopen(kfd, "r+")) == NULL) { | 	if ((key = fdopen(kfd, "r+")) == NULL) { | ||||||
| 		ret = errno; | 		ret = errno; | ||||||
| 		free(path); |  | ||||||
| 		(void) close(kfd); | 		(void) close(kfd); | ||||||
| 		zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | 		zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | ||||||
| 		    "Couldn't reopen temporary file: %s"), strerror(ret)); | 		    "Couldn't reopen temporary file: %s"), strerror(ret)); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 наб
						наб