Ticket #11: engine_pkcs11-0.1.5-patch
| File engine_pkcs11-0.1.5-patch, 368 bytes (added by crash, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | --- src/engine_pkcs11.c.orig 2008-10-18 08:47:40.000000000 +0200 |
| 2 | +++ src/engine_pkcs11.c 2008-10-18 08:48:34.000000000 +0200 |
| 3 | @@ -114,7 +114,7 @@ |
| 4 | } *mycb = callback_data; |
| 5 | |
| 6 | /* pin in the call back data, copy and use */ |
| 7 | - if (mycb->password) { |
| 8 | + if (mycb != NULL && mycb->password) { |
| 9 | pin = (char *)calloc(MAX_PIN_LENGTH, sizeof(char)); |
| 10 | if (!pin) |
| 11 | return 0; |
