aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-20 18:42:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-06-20 18:42:43 -0700
commit69122bdfbcbf4f17cbf027e7873633a1528ef874 (patch)
tree44181ed17d25dbc01851f7d7ab3d95eba93f323b
parenta33cde794a988d725ce1dc1bd2d79d5213d38cbf (diff)
downloadsyslinux-69122bdfbcbf4f17cbf027e7873633a1528ef874.tar.gz
syslinux-69122bdfbcbf4f17cbf027e7873633a1528ef874.tar.xz
syslinux-69122bdfbcbf4f17cbf027e7873633a1528ef874.zip
pxe: don't misidentify non-tftp URLs as tftp
Fix reversed test for tftp URLs Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/fs/pxe/pxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index ef2398b4..4ca250c3 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -387,7 +387,7 @@ static enum pxe_path_type pxe_path_type(const char *str)
else
return PXE_TFTP;
} else if (p > str && p[1] == '/' && p[2] == '/') {
- if (strncasecmp(str, "tftp://", 7))
+ if (!strncasecmp(str, "tftp://", 7))
return PXE_URL_TFTP;
else
return PXE_URL;