]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 374336 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Thu, 4 Oct 2012 02:25:29 +0000 (02:25 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 4 Oct 2012 02:25:29 +0000 (02:25 +0000)
commit32da9c5e9188737fabdc25c6100a17002eb3fb5c
tree6532bb14ffd734ec0ead9b83e3ee9594f0cbaab3
parent9faa31358a68cd69109ba1550879606836673128
Merged revisions 374336 via svnmerge from
file:///srv/subversion/repos/asterisk/branches/10

................
  r374336 | mjordan | 2012-10-03 21:11:05 -0500 (Wed, 03 Oct 2012) | 31 lines

  Check for presence of buddy in info/dinfo handlers

  The res_jabber resource module uses the ASTOBJ library for managing its ref
  counted objects.  After calling ASTOBJ_CONTAINER_FIND to locate a buddy object,
  the pointer to the object has to be checked to see if the buddy existed.
  Prior to this patch, the buddy object was not checked for NULL; with this patch
  in both aji_client_info_handler and aji_dinfo_handler the pointer is checked
  before used and, if no buddy object was found, the handlers return an error
  code.

  This patch does not take the approach that our JID can be used to log in from
  another resource.  If that approach is desired, an improvement could be made to
  this patch to create the buddy on the fly.  This patch seeks only to prevent
  Asterisk from crashing.

  Note that multiple people have proposed patches for this issue; the patch being
  committed here is based on those.

  (closes issue ASTERISK-19532)
  Reported by: Karsten Wemheuer
  Tested by: Byron Clark
  patches:
    fix-jabber uploaded by Karsten Wemheuer (license #5930)
    xmpp_no_crash_with_ejabberd.patch uploaded by Byron Clark (license #6157)

  (closes issue ASTERISK-19557)
  Reported by: ulugutz
  ........

  Merged revisions 374335 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@374364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_jabber.c