Skip to content
Snippets Groups Projects
  • Joshua Colp's avatar
    5422ec14
    srv: Fix crash when ast_srv_lookup is used and 0 records are returned. · 5422ec14
    Joshua Colp authored
    When performing an SRV lookup using the ast_srv_lookup function it
    did not properly handle the situation where 0 records are returned.
    If this happened it would wrongly assume that at least one record
    was present.
    
    This change fixes the code so it will exit early if an error occurs
    or if 0 records are returned.
    
    ASTERISK-26772
    patches:
      srv_lookup.patch submitted by nappsoft (license 6822)
    
    Change-Id: I09b19081c74e0ad11c12bf54a257243b1bcb2351
    5422ec14
    History
    srv: Fix crash when ast_srv_lookup is used and 0 records are returned.
    Joshua Colp authored
    When performing an SRV lookup using the ast_srv_lookup function it
    did not properly handle the situation where 0 records are returned.
    If this happened it would wrongly assume that at least one record
    was present.
    
    This change fixes the code so it will exit early if an error occurs
    or if 0 records are returned.
    
    ASTERISK-26772
    patches:
      srv_lookup.patch submitted by nappsoft (license 6822)
    
    Change-Id: I09b19081c74e0ad11c12bf54a257243b1bcb2351