mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix logic in gethostbyname_r (bug #1634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										2
									
								
								utils.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								utils.c
									
									
									
									
									
								
							| @@ -111,7 +111,7 @@ int gethostbyname_r (const char *name, struct hostent *ret, char *buf, | ||||
| 	h_errno = hsave;  /* restore h_errno */ | ||||
| 	ast_mutex_unlock(&__mutex); /* end critical area */ | ||||
|  | ||||
| 	return (*result != NULL); | ||||
| 	return (*result == NULL); /* return 0 on success, non-zero on error */ | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user