Skip to content

Commit 9032bca

Browse files
Bo98gitster
authored andcommitted
osxkeychain: erase all matching credentials
Other credential managers erased all matching credentials, as indicated by a test case that osxkeychain failed: 15 - helper (osxkeychain) erases all matching credentials Signed-off-by: Bo Anderson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9abe31f commit 9032bca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/credential/osxkeychain/git-credential-osxkeychain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ static OSStatus delete_internet_password(void)
182182
if (!protocol || !host)
183183
return -1;
184184

185-
attrs = CREATE_SEC_ATTRIBUTES(NULL);
185+
attrs = CREATE_SEC_ATTRIBUTES(kSecMatchLimit, kSecMatchLimitAll,
186+
NULL);
186187
result = SecItemDelete(attrs);
187188
CFRelease(attrs);
188189

0 commit comments

Comments
 (0)