mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r3015: fixed typo noticed by abartlett
(This used to be commit b367209a9f94e471efed233639467babbb2b99d7)
This commit is contained in:
parent
8d1e35e243
commit
844de2b65c
@ -236,12 +236,13 @@ int socket_get_fd(struct socket_context *sock)
|
|||||||
|
|
||||||
const struct socket_ops *socket_getops_byname(const char *name, enum socket_type type)
|
const struct socket_ops *socket_getops_byname(const char *name, enum socket_type type)
|
||||||
{
|
{
|
||||||
if (strequal("ip", name) || strequal("ipv4", name)) {
|
if (strcmp("ip", name) == 0 ||
|
||||||
|
strcmp("ipv4", name) == 0) {
|
||||||
return socket_ipv4_ops();
|
return socket_ipv4_ops();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strequal("unix", name)) {
|
if (strcmp("unix", name) == 0) {
|
||||||
return socket_ipv4_ops();
|
return socket_unixdom_ops();
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user