Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
rude
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rude
rude
Commits
ab985946
Commit
ab985946
authored
Nov 25, 2002
by
Sampo Saaristo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed a misplaced htonl(), (bug reported by Walter Zimmer)
parent
ea00c5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
crude/main.c
crude/main.c
+1
-1
No files found.
crude/main.c
View file @
ab985946
...
...
@@ -421,7 +421,7 @@ static int make_conn(unsigned short port, char *ifaddr)
if
((
ifaddr
==
NULL
)
||
(
strlen
(
ifaddr
)
==
0
)){
((
struct
sockaddr_in
*
)
&
our_addr
)
->
sin_addr
.
s_addr
=
htonl
(
INADDR_ANY
);
}
else
if
((
our_ip
=
inet_addr
(
ifaddr
))
!=
-
1
){
((
struct
sockaddr_in
*
)
&
our_addr
)
->
sin_addr
.
s_addr
=
htonl
(
our_ip
)
;
((
struct
sockaddr_in
*
)
&
our_addr
)
->
sin_addr
.
s_addr
=
our_ip
;
}
else
{
RUDEBUG1
(
"crude: invalid interface address %s !
\n
"
,
ifaddr
);
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment