mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add SASL to virNetSocket{Local,Remote}AddrString
Rename them to virNetSocket{Local,Remote}AddrStringSASL
to make their format more obvious.
This commit is contained in:
@@ -249,12 +249,12 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
|
||||
if (virNetSocketNewListenUNIX(path, 0700, -1, getegid(), &lsock) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (STRNEQ(virNetSocketLocalAddrString(lsock), "127.0.0.1;0")) {
|
||||
if (STRNEQ(virNetSocketLocalAddrStringSASL(lsock), "127.0.0.1;0")) {
|
||||
VIR_DEBUG("Unexpected local address");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virNetSocketRemoteAddrString(lsock) != NULL) {
|
||||
if (virNetSocketRemoteAddrStringSASL(lsock) != NULL) {
|
||||
VIR_DEBUG("Unexpected remote address");
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -265,12 +265,12 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
|
||||
if (virNetSocketNewConnectUNIX(path, false, NULL, &csock) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (STRNEQ(virNetSocketLocalAddrString(csock), "127.0.0.1;0")) {
|
||||
if (STRNEQ(virNetSocketLocalAddrStringSASL(csock), "127.0.0.1;0")) {
|
||||
VIR_DEBUG("Unexpected local address");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (STRNEQ(virNetSocketRemoteAddrString(csock), "127.0.0.1;0")) {
|
||||
if (STRNEQ(virNetSocketRemoteAddrStringSASL(csock), "127.0.0.1;0")) {
|
||||
VIR_DEBUG("Unexpected remote address");
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -287,12 +287,12 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
|
||||
}
|
||||
|
||||
|
||||
if (STRNEQ(virNetSocketLocalAddrString(ssock), "127.0.0.1;0")) {
|
||||
if (STRNEQ(virNetSocketLocalAddrStringSASL(ssock), "127.0.0.1;0")) {
|
||||
VIR_DEBUG("Unexpected local address");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (STRNEQ(virNetSocketRemoteAddrString(ssock), "127.0.0.1;0")) {
|
||||
if (STRNEQ(virNetSocketRemoteAddrStringSASL(ssock), "127.0.0.1;0")) {
|
||||
VIR_DEBUG("Unexpected remote address");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user