Skip to content

Commit

Permalink
Return previous SecurityInfo from Redis security store add
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
  • Loading branch information
scop authored and sbernard31 committed Apr 25, 2017
1 parent 349a292 commit ac0a48a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public SecurityInfo add(SecurityInfo info) throws NonUniqueSecurityInfoException
if (previousIdentity != null && !previousIdentity.equals(info.getIdentity())) {
j.hdel(PSKID_SEC, previousIdentity);
}
return null;

return previous;
}
}

Expand Down

0 comments on commit ac0a48a

Please sign in to comment.