diff options
author | Ben Straub <bs@github.com> | 2013-10-31 13:30:22 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-10-31 13:30:22 -0700 |
commit | 048f837b2fd5cd12ed7e3ca497f11460ab3114a9 (patch) | |
tree | cd9dd4e90f790a99534f8024f8686a8d8672f117 /src/netops.c | |
parent | 887df99f17c44b0726e0034885ea922b99254933 (diff) | |
download | libgit2-048f837b2fd5cd12ed7e3ca497f11460ab3114a9.tar.gz |
Prevent another segfault from bad URL
Diffstat (limited to 'src/netops.c')
-rw-r--r-- | src/netops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c index 5f0db24ef..7e13f12e7 100644 --- a/src/netops.c +++ b/src/netops.c @@ -680,7 +680,7 @@ int gitno_extract_url_parts( at = strchr(url, '@'); if (!slash || - (colon && slash < colon)) { + (colon && (slash < colon))) { giterr_set(GITERR_NET, "Malformed URL"); return GIT_EINVALIDSPEC; } |