[syslinux:master] pxe: don't misidentify non-tftp URLs as tftp

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Jun 20 18:45:21 PDT 2010


Commit-ID:  69122bdfbcbf4f17cbf027e7873633a1528ef874
Gitweb:     http://syslinux.zytor.com/commit/69122bdfbcbf4f17cbf027e7873633a1528ef874
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 20 Jun 2010 18:42:43 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 20 Jun 2010 18:42:43 -0700

pxe: don't misidentify non-tftp URLs as tftp

Fix reversed test for tftp URLs

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/pxe/pxe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index ef2398b..4ca250c 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;



More information about the Syslinux-commits mailing list