Handle 401 response to non-REGISTER requests correctly
commit3135234bac447e451e6899d1a6812f599c058e9e
authorStefan Becker <stefan.becker@nokia.com>
Thu, 4 Nov 2010 21:03:38 +0000 (4 23:03 +0200)
committerStefan Becker <stefan.becker@nokia.com>
Thu, 4 Nov 2010 21:03:38 +0000 (4 23:03 +0200)
treec2244388ba7409dfc50410b90e8fea97a75c2039
parenta42dd1c34568b06d660d0d5fa162f9ec8f46e1ec
Handle 401 response to non-REGISTER requests correctly

After we have started a full reauthentication any non-REGISTER request will be
rejected by the server with 401 Unauthorized.

The old code disrupted the authentication handshake, because it messed with the
authentication data, and therefore caused an incorrect authentication failure.

The new code just resends the original non-REGISTER request. This creates a
request - 401 response loop. Once the authentication handshake is completed we
break the loop by re-signing the request which is then accepted by the server.
src/core/sip-transport.c