From 17c34df3b944f65cbc3d1071e61b245f363621bf Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 30 Sep 2020 12:10:09 -0700 Subject: [PATCH] fsutils:ipcfg Fix range checking for PRTOCOL in bin mode --- fsutils/ipcfg/ipcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsutils/ipcfg/ipcfg.c b/fsutils/ipcfg/ipcfg.c index 43a184222..e6763b4d0 100644 --- a/fsutils/ipcfg/ipcfg.c +++ b/fsutils/ipcfg/ipcfg.c @@ -551,7 +551,7 @@ int ipcfg_write(FAR const char *netdev, FAR const struct ipcfg_s *ipcfg) /* Format and write the file */ - if ((unsigned)ipcfg->proto == MAX_BOOTPROTO) + if ((unsigned)ipcfg->proto > MAX_BOOTPROTO) { fprintf(stderr, "ERROR: Unrecognized BOOTPROTO value: %d\n", ipcfg->proto);