]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/ipsec-secgw.c
common/dpaax: fix physical address conversion
[dpdk.git] / examples / ipsec-secgw / ipsec-secgw.c
index f252d34985b42ac47d31a271494b4d75a9d7f2fe..7ad94cb8228bbfa835475b16eac6c5e331cd3b39 100644 (file)
@@ -1495,6 +1495,8 @@ parse_portmask(const char *portmask)
        char *end = NULL;
        unsigned long pm;
 
+       errno = 0;
+
        /* parse hexadecimal string */
        pm = strtoul(portmask, &end, 16);
        if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))