handling "No policy found" properly

This commit is contained in:
Martin Willi
2007-03-08 14:41:09 +00:00
parent 0cde6c412b
commit 2c7fe7f530
+3 -3
View File
@@ -555,8 +555,8 @@ static status_t build_r(private_child_create_t *this, message_t *message)
if (this->policy == NULL) if (this->policy == NULL)
{ {
SIG(CHILD_UP_FAILED, "received traffic selectors inacceptable"); SIG(CHILD_UP_FAILED, "no acceptable policy found");
message->add_notify(message, FALSE, TS_UNACCEPTABLE, chunk_empty); message->add_notify(message, FALSE, NO_PROPOSAL_CHOSEN, chunk_empty);
return SUCCESS; return SUCCESS;
} }
@@ -569,7 +569,7 @@ static status_t build_r(private_child_create_t *this, message_t *message)
if (select_and_install(this) != SUCCESS) if (select_and_install(this) != SUCCESS)
{ {
message->add_notify(message, FALSE, NO_PROPOSAL_CHOSEN, chunk_empty); message->add_notify(message, FALSE, TS_UNACCEPTABLE, chunk_empty);
return SUCCESS; return SUCCESS;
} }