diff --git a/src/transbank.c b/src/transbank.c index 27b8790..ebaf558 100644 --- a/src/transbank.c +++ b/src/transbank.c @@ -244,7 +244,7 @@ BaseResponse close() if (wait > 0) { int readedbytes = read_bytes(port, buf, CLOSE); - if (read_bytes > 0) + if (readedbytes > 0) { retval = reply_ack(port, buf, CLOSE.responseSize); if (retval == TBK_OK)