child-sa: Use single return statement in update_usebytes()
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
This commit is contained in:
1 parent
649537ee8d
commit
1042b9194f
1 file changed
+8
-4
@@ -495,9 +495,11 @@ static status_t update_usebytes(private_child_sa_t *this, bool inbound)
|
|||||||
{
|
{
|
||||||
this->my_usetime = time;
|
this->my_usetime = time;
|
||||||
}
|
}
|
||||||
return SUCCESS;
|
|
||||||
}
|
}
|
||||||
return FAILED;
|
else
|
||||||
|
{
|
||||||
|
status = FAILED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -526,9 +528,11 @@ static status_t update_usebytes(private_child_sa_t *this, bool inbound)
|
|||||||
{
|
{
|
||||||
this->other_usetime = time;
|
this->other_usetime = time;
|
||||||
}
|
}
|
||||||
return SUCCESS;
|
|
||||||
}
|
}
|
||||||
return FAILED;
|
else
|
||||||
|
{
|
||||||
|
status = FAILED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user