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:
parent
f003360c17
commit
0cf455a56d
|
@ -104,7 +104,7 @@ char * get_pin(struct sc_pkcs15_object *obj)
|
||||||
if (strlen(pincode) < pinfo->min_length ||
|
if (strlen(pincode) < pinfo->min_length ||
|
||||||
strlen(pincode) > pinfo->max_length)
|
strlen(pincode) > pinfo->max_length)
|
||||||
continue;
|
continue;
|
||||||
return pincode;
|
return strdup(pincode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue