mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Use appropriate type for requested format in chan_local.
We were passing and storing the requested format as an int instead of format_t resulting in truncation. (closes issue #18238) Reported by: whizemen Patches: 0018238_speex16.patch uploaded by whizemen (license 1143) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@302412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -141,7 +141,7 @@ struct local_pvt { | ||||
| 	unsigned int flags;                     /*!< Private flags */ | ||||
| 	char context[AST_MAX_CONTEXT];		/*!< Context to call */ | ||||
| 	char exten[AST_MAX_EXTENSION];		/*!< Extension to call */ | ||||
| 	int reqformat;				/*!< Requested format */ | ||||
| 	format_t reqformat;				/*!< Requested format */ | ||||
| 	struct ast_jb_conf jb_conf;		/*!< jitterbuffer configuration for this local channel */ | ||||
| 	struct ast_channel *owner;		/*!< Master Channel - Bridging happens here */ | ||||
| 	struct ast_channel *chan;		/*!< Outbound channel - PBX is run here */ | ||||
| @@ -955,7 +955,7 @@ static int local_hangup(struct ast_channel *ast) | ||||
| } | ||||
|  | ||||
| /*! \brief Create a call structure */ | ||||
| static struct local_pvt *local_alloc(const char *data, int format) | ||||
| static struct local_pvt *local_alloc(const char *data, format_t format) | ||||
| { | ||||
| 	struct local_pvt *tmp = NULL; | ||||
| 	char *c = NULL, *opts = NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user