Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
rude
rude
Commits
ab985946
Commit
ab985946
authored
Nov 25, 2002
by
Sampo Saaristo
Browse files
removed a misplaced htonl(), (bug reported by Walter Zimmer)
parent
ea00c5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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