You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/09/30 20:09:30 UTC

[incubator-nuttx-apps] 02/03: fsutils:ipcfg Fix range checking for PRTOCOL in bin mode

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 17c34df3b944f65cbc3d1071e61b245f363621bf
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Wed Sep 30 12:10:09 2020 -0700

    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 43a1842..e6763b4 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);