Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

MegaManSec
Copy link
Contributor

No description provided.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
@Sashan Sashan added triaged: refactor The issue/pr requests/implements refactoring branch: master Merge to master branch approval: review pending This pull request needs review by a committer labels Oct 16, 2025
** Setup a listen for the socket
*/
listen (SockDesc1, 5);
if (listen (SockDesc1, 5) < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be honest I would expect listen() to fail. So I'm on edge with this. but let's see what @levitte thinks here.


if (mbuf == NULL || fbio == NULL) {
BIO_printf(bio_err /* may be NULL */, "%s: out of memory", prog);
if (bio_err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should either drop the change and leave the code as is, because bio_err == NULL is handled by underlying BIO_write() or we can fold bio_err == NULL into BIO_printf() itself. This should make cost of failure cheaper in terms of CPU cycles. Currently we do all complex buffer handling related to format string processing just to discover BIO_write() fails because of bio being NULL.

so this is the change I would suggest here, but let's wait what other people here think. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: review pending This pull request needs review by a committer branch: master Merge to master branch triaged: refactor The issue/pr requests/implements refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.