From: Matthew Jordan Date: Mon, 23 Apr 2012 13:48:48 +0000 (+0000) Subject: Reference skinny_subchannel object instead of skinny_device for r363103 X-Git-Tag: 10.5.0-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d3ff4780adb0f03c60429912f4f8c8cb20a7340;p=thirdparty%2Fasterisk.git Reference skinny_subchannel object instead of skinny_device for r363103 The check-in to resolve ASTERISK-19592 (r363103) failed to switch to the skinny_subchannel object instead of the skinny_device when attempting to reference the buffer for the keypad digits. This patch fixes that. (issue ASTERISK-19592) Reported by: Russell Bryant git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@363104 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index e18e04e545..883c420479 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -6663,10 +6663,10 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s) ast_log(LOG_WARNING, "Unsupported digit %d\n", digit); } - len = strlen(d->exten); - if (len < sizeof(d->exten) - 1) { - d->exten[len] = dgt; - d->exten[len + 1] = '\0'; + len = strlen(sub->exten); + if (len < sizeof(sub->exten) - 1) { + sub->exten[len] = dgt; + sub->exten[len + 1] = '\0'; } else { ast_log(AST_LOG_WARNING, "Dropping digit with value %d because digit queue is full\n", dgt); }