• Travis Cross's avatar
    Fix crash on transport=tls with non-TLS profile · 60b36539
    Travis Cross 提交于
    We use the transport of the Contact header of the remote UAC to decide
    which of our own Contact addresses we should use when replying to a
    SUBSCRIBE or sending a presence NOTIFY.
    
    If TLS is not enabled on a Sofia profile, then the TLS Contacts for
    that profile are NULL.  Unfortunately we were using these NULL values
    uncritically when the remote UAC sent us a Contact header with a TLS
    transport and our own Sofia profile did not have TLS enabled.
    
    With this commit we fall back to our TCP Contact address when the
    remote Contact is TLS and our Sofia profile does not have TLS enabled.
    60b36539
sofia_glue.c 249.8 KB