mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	Merged revisions 283350 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r283350 | russell | 2010-08-24 07:49:41 -0500 (Tue, 24 Aug 2010) | 2 lines Don't attempt to release a NULL ODBC handle. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@283351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -502,9 +502,11 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
 | 
				
			|||||||
		if (stmt) {
 | 
							if (stmt) {
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if (obj) {
 | 
				
			||||||
			ast_odbc_release_obj(obj);
 | 
								ast_odbc_release_obj(obj);
 | 
				
			||||||
			obj = NULL;
 | 
								obj = NULL;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!stmt) {
 | 
						if (!stmt) {
 | 
				
			||||||
		ast_log(LOG_ERROR, "Unable to execute query [%s]\n", ast_str_buffer(sql));
 | 
							ast_log(LOG_ERROR, "Unable to execute query [%s]\n", ast_str_buffer(sql));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user