Skip to content

Commit

Permalink
Fixed bug in ‘sqAcceptSSL’ in ‘sqMacSSL.c’ which, after setting the s…
Browse files Browse the repository at this point in the history
…tate to ‘SQSSL_CONNECTED’, returned the value of ‘SQSSL_OK’ (zero) rather than the number of bytes written to the output buffer.
  • Loading branch information
Rinzwind committed Jun 15, 2024
1 parent c012a6b commit 539aedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extracted/plugins/SqueakSSL/src/osx/sqMacSSL.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ sqInt sqAcceptSSL(sqInt handle, char* srcBuf, sqInt srcLen, char* dstBuf,
}
/* We are connected. Verify the cert. */
ssl->state = SQSSL_CONNECTED;
return SQSSL_OK;
return ssl->outLen;
}

/* sqEncryptSSL: Encrypt data for SSL transmission.
Expand Down

0 comments on commit 539aedd

Please sign in to comment.