summaryrefslogtreecommitdiffstats
path: root/src/fuse
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-14 16:26:16 +0100
committerSimon Rettberg2023-02-14 16:26:16 +0100
commit6b2adb58e8ab63682b9e44ce55e4e10207197699 (patch)
tree287709d346bf804ec550f360ef0a358cabcbbcaf /src/fuse
parent[FUSE] Make initial connect entirely parallel wrt servers (diff)
downloaddnbd3-6b2adb58e8ab63682b9e44ce55e4e10207197699.tar.gz
dnbd3-6b2adb58e8ab63682b9e44ce55e4e10207197699.tar.xz
dnbd3-6b2adb58e8ab63682b9e44ce55e4e10207197699.zip
[FUSE] Fix termination condition for reading host list
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuse/connection.c b/src/fuse/connection.c
index 5ad3ae7..e760d98 100644
--- a/src/fuse/connection.c
+++ b/src/fuse/connection.c
@@ -193,7 +193,7 @@ bool connection_init( const char *hosts, const char *lowerImage, const uint16_t
altIndex += 1;
}
current = end + 1;
- } while ( end != NULL && altIndex < MAX_ALTS );
+ } while ( *end != '\0' && altIndex < MAX_ALTS );
logadd( LOG_INFO, "Got %d servers from init call", altIndex );
// Wait a maximum of five seconds if we're not connected yet
if ( connection.sockFd == -1 && pendingConnectionAttempts > 0 ) {