diff --git a/lib/init.c b/lib/init.c index df32edf..65211da 100644 --- a/lib/init.c +++ b/lib/init.c @@ -316,10 +316,14 @@ iscsi_parse_full_url(struct iscsi_context *iscsi, const char *url) portal = tmp; tmp = strchr(user, '%'); + if (tmp == NULL) { + tmp = strchr(user, ':'); + } if (tmp != NULL) { *tmp++ = 0; passwd = tmp; } + } target = strchr(portal, '/');