transport: handle small expires value correctly
commitcd1b3dfbc00b61e07720d6115c22e52b2420e908
authorStefan Becker <chemobejk@gmail.com>
Wed, 23 Oct 2013 19:13:07 +0000 (23 22:13 +0300)
committerStefan Becker <chemobejk@gmail.com>
Wed, 23 Oct 2013 19:13:07 +0000 (23 22:13 +0300)
tree92c9990159aa55bc7e098ac781933219c58521e7
parent46398ae114a46540864433c3cc3225e674dbb68e
transport: handle small expires value correctly

What we actually wanted was to schedule re-authenticate 5 minutes before
the expires value from the security context. Unfortunately the code
mixed up two different things:

- checking for valid expires value, i.e. expires != 0
- making sure expires is > 5 * 60 seconds = 5 minutes

If the security context returned a smaller value then it was ignored and
the default of 8 hours was used for re-authentication.

Fix this mess...
src/core/sip-transport.c