Merge pull request #20 from narimiran/cuchar-fix

fix type mismatch
This commit is contained in:
Jacek Sieka 2021-06-07 13:46:10 +02:00 committed by GitHub
commit dc62f4fccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2402,7 +2402,7 @@ proc skeyDecoderPush*(ctx: ptr SkeyDecoderContext; data: pointer; len: int) {.be
proc skeyDecoderLastError*(ctx: ptr SkeyDecoderContext): cint {.inline.} =
if ctx.err != 0:
return ctx.err
if ctx.keyType == '\0':
if ctx.keyType == '\0'.cuchar:
return ERR_X509_TRUNCATED
return 0