Skip to content

Commit bcc04ea

Browse files
committed
strip whitespace chars in front of connstrings
1 parent b8868bd commit bcc04ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

multimaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,10 @@ void MtmUpdateNodeConnectionInfo(MtmConnectionInfo* conn, char const* connStr)
27752775
MTM_ELOG(ERROR, "Too long (%d) connection string '%s': limit is %d",
27762776
connStrLen, connStr, MULTIMASTER_MAX_CONN_STR_SIZE-1);
27772777
}
2778+
2779+
while(isspace(*connStr))
2780+
connStr++;
2781+
27782782
strcpy(conn->connStr, connStr);
27792783

27802784
host = strstr(connStr, "host=");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy