git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-common: Protocol argument must be in host order for socket() call
[samba.git]
/
ctdb
/
common
/
system_common.c
diff --git
a/ctdb/common/system_common.c
b/ctdb/common/system_common.c
index 899f3b56bebc6927089da675997c30362a4d1dc2..3e30a6cd6eb32ebe38c11f51f324ccd807703183 100644
(file)
--- a/
ctdb/common/system_common.c
+++ b/
ctdb/common/system_common.c
@@
-85,7
+85,7
@@
char *ctdb_sys_find_ifname(ctdb_sock_addr *addr)
struct ifconf ifc;
char *ptr;
- s = socket(AF_INET, SOCK_RAW,
htons(IPPROTO_RAW)
);
+ s = socket(AF_INET, SOCK_RAW,
IPPROTO_RAW
);
if (s == -1) {
DEBUG(DEBUG_CRIT,(__location__ " failed to open raw socket (%s)\n",
strerror(errno)));