Properly terminate the receive buffer before sending to iksemel.
authorSean Bright <sean@malleable.com>
Sat, 30 May 2009 20:11:33 +0000 (20:11 +0000)
committerSean Bright <sean@malleable.com>
Sat, 30 May 2009 20:11:33 +0000 (20:11 +0000)
commit3353710e16aa1d3076bd09de7b61839c6d45014e
tree17f520d16f1d5aa829dbb2818fe0a3c091d97bdf
parent90c3db40ed8dcf8bacc0cb7dc8ed930cdcab8dfa
Properly terminate the receive buffer before sending to iksemel.

aji_io_recv takes the maximum number of bytes to read (instead of the total
buffer size), so we have to subtract 1 from our buffer size.  Without this, when
we receive packets that are larger than our buffer, iksemel will choke and
things get wonky.

(closes issue #15232)
Reported by: lp0
Patches:
      05302009_res_jabber.c.patch uploaded by seanbright (license 71)
Tested by: seanbright, lp0

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_jabber.c