Permalink
Browse files

Whooops, fixed a NULL bug. Lets call it v2 from now on.

  • Loading branch information...
1 parent c749ddb commit 43f18eb873d87dc1495b84b65cf502ab72a87d4a @torsten committed Nov 8, 2008
Showing with 3 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +2 −2 keychain_access.c
View
@@ -1,5 +1,5 @@
TARGET = keychain_access
-VERSION = v1
+VERSION = v2
REV = $(shell git rev-parse --short=4 HEAD || cat git-rev)
DEBUG = -g
View
@@ -58,7 +58,7 @@ int kca_print_private_key(SecKeychainItemRef p_keyItem,
CFDataRef exportKey;
- if(!p_password)
+ if(p_password)
exportKey = CFDataCreate(
NULL, (unsigned char*)p_password, strlen(p_password));
@@ -294,7 +294,7 @@ int kca_print_key(const char *p_keyName, const char *p_keyPassword)
if(status != noErr)
{
- searchFailed:
+searchFailed:
if(searchRef)
CFRelease(searchRef);

0 comments on commit 43f18eb

Please sign in to comment.