mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Fix CDR crash (bug #5525 and many others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										1
									
								
								cdr.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								cdr.c
									
									
									
									
									
								
							| @@ -170,6 +170,7 @@ struct ast_cdr *ast_cdr_dup(struct ast_cdr *cdr) | |||||||
| 	/* The varshead is unusable, volatile even, after the memcpy so we take care of that here */ | 	/* The varshead is unusable, volatile even, after the memcpy so we take care of that here */ | ||||||
| 	memset(&newcdr->varshead, 0, sizeof(newcdr->varshead)); | 	memset(&newcdr->varshead, 0, sizeof(newcdr->varshead)); | ||||||
| 	ast_cdr_copy_vars(newcdr, cdr); | 	ast_cdr_copy_vars(newcdr, cdr); | ||||||
|  | 	newcdr->next = NULL; | ||||||
|  |  | ||||||
| 	return newcdr; | 	return newcdr; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user