#586 B2B: crash when request without from_tag or to header

trunk
closed-fixed
modules (454)
5
2012-11-30
2012-11-22
Nick Altmann
No

Sometimes buggy UACs send in-b2b-dialog CANCEL without from_tag.
b2b_entities module crashes in dlg.c on line 645:
hash_index = core_hash(&callid, &from_tag, server_hsize);

because from_tag is empty.

Discussion

  • Nick Altmann
    Nick Altmann
    2012-11-26

    I've tested it again. Any packet without from tag or without to header crashes opensips!

    Patch attached.

     
  • Nick Altmann
    Nick Altmann
    2012-11-26

    • summary: B2B: crash when CANCEL without from_tag --> B2B: crash when request without from_tag or to header
     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed-fixed
     
  • Hi Nick,

    Added the fix on SVN trunk, 1.8 and 1.7 .

    Thanks for report,
    Bogdan