Skip to content

Conversation

@lkundrak
Copy link

@lkundrak lkundrak commented Jul 1, 2014

And a couple of more commits that were needed for reasonable operation for me.

Lubomir Rintel added 4 commits July 1, 2014 19:10
There's no way to tell whether the architecture has its stdint.h, as
__UINT_FAST64_TYPE__ built in define didn't exist yet. Redefining the
types would break the build, and chances are we're not on some exotic
architecture where stdint would be missing, so let's assume it exists.
The buf gets copied to hostname and is present verbatim in logs looking
like pure random garbage. Moreover you can't really strlen() it.

This was likely some silly typo in inet_ntoa -> inet_ntop conversion for
ipv6, since it used to be correct before.
This used to look pretty random :(

Try to keep the last decimal digits of internal errors sensible for v5
error codes. For most cases we can't really do much better than using the
value of one.

One specific code paths where we can return something more useful is the
authentication, where we not communicate the underlying error code or
signal an ACL denial.

As for v4, there's not really much space to be too smart as only the code
of 91 is meaningful. Therefore we limit the last digit to zero and one now.
@z3APA3A
Copy link
Collaborator

z3APA3A commented Jul 1, 2014

Thanks, accepted with minor changes.

Lubomir Rintel пишет:

And a couple of more commits that were needed for reasonable operation
for me.


    You can merge this Pull Request by running

git pull https://github.com/lkundrak/3proxy devel

Or view, comment on, or merge it at:

#1

    Commit Summary


Reply to this email directly or view it on GitHub
#1.

@z3APA3A
Copy link
Collaborator

z3APA3A commented Jul 1, 2014

Accepted by cherry-pick'ing commits.

@z3APA3A z3APA3A closed this Jul 1, 2014
@ghost ghost mentioned this pull request Dec 21, 2015
@termeee termeee mentioned this pull request Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants