diff options
-rw-r--r-- | p11-kit/pin.c | 2 | ||||
-rw-r--r-- | tests/pin-test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/p11-kit/pin.c b/p11-kit/pin.c index f7ec783..183b5f8 100644 --- a/p11-kit/pin.c +++ b/p11-kit/pin.c @@ -473,7 +473,7 @@ p11_kit_pin_file_callback (const char *pin_source, for (;;) { if (used + block > 4096) { - error = EOVERFLOW; + error = EFBIG; break; } if (used + block > allocated) { diff --git a/tests/pin-test.c b/tests/pin-test.c index 3a50e46..7e7dda8 100644 --- a/tests/pin-test.c +++ b/tests/pin-test.c @@ -270,7 +270,7 @@ test_pin_file_large (CuTest *tc) error = errno; CuAssertPtrEquals (tc, NULL, pin); - CuAssertIntEquals (tc, EOVERFLOW, error); + CuAssertIntEquals (tc, EFBIG, error); p11_kit_pin_unregister_callback (P11_KIT_PIN_FALLBACK, p11_kit_pin_file_callback, NULL); |