diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 10a9e671bf..eedce43f86 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Thu Feb 12 15:11:37 CST 2009 +Thu Feb 12 15:13:11 CST 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c index 0b34d51238..724e8b03c7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c @@ -877,7 +877,7 @@ int nua_client_request_sendmsg(nua_client_request_t *cr) else error = nua_base_client_request(cr, msg, sip, NULL); - if (error != 0 && error != -2) + if (error == -1) msg_destroy(msg); return error; @@ -906,9 +906,9 @@ int nua_base_client_trequest(nua_client_request_t *cr, /** Send request. * * @retval 0 success - * @retval -1 if error occurred, but event has not been sent - * @retval -2 if error occurred, event has not been sent, - * and @a msg has been destroyed + * @retval -1 if error occurred, but event has not been sent, + * and caller has to destroy request message @ msg + * @retval -2 if error occurred, event has not been sent * @retval >=1 if error event has been sent */ int nua_base_client_request(nua_client_request_t *cr, msg_t *msg, sip_t *sip, diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h b/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h index 8fc4ca1e2b..ae4cafb593 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h @@ -71,8 +71,8 @@ typedef struct { * * @retval 1 when request has been responded * @retval 0 when request has been sent - * @retval -1 upon an error (request message has not been destroyed) - * @retval -2 upon an error (request message has been destroyed) + * @retval -1 upon an error (but request message has not been destroyed) + * @retval -2 upon an error */ int (*crm_send)(nua_client_request_t *, msg_t *msg, sip_t *sip, @@ -80,7 +80,7 @@ typedef struct { /** @a crm_check_restart is called each time when a response is received. * - * It is used to restart reqquest after responses with method-specific + * It is used to restart request after responses with method-specific * status code or method-specific way of restarting the request. * * @retval 1 when request has been restarted