fix type mismatch

This commit is contained in:
narimiran 2021-05-20 08:28:46 +02:00
parent 0a7401ad46
commit 1a0401d6d0

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