Fix: don't free() a static buffer (Ivo)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1497 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-10-10 14:48:40 +00:00
parent f003360c17
commit 0cf455a56d
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ char * get_pin(struct sc_pkcs15_object *obj)
if (strlen(pincode) < pinfo->min_length ||
strlen(pincode) > pinfo->max_length)
continue;
return pincode;
return strdup(pincode);
}
}