]> git.sur5r.net Git - ngadmin/blobdiff - spy/src/spy.c
Fix network configuration modification
[ngadmin] / spy / src / spy.c
index ead684dfb163649de4f1c6c11d7091092a5b278e..20068906348a4ceee75ac5885c34c24bbd9c3b51 100644 (file)
@@ -276,7 +276,7 @@ static void print_attr (const struct attr *at)
                break;
        
        case ATTR_DHCP:
-               printf("\tDHCP = %s\n", *byte ? "yes" : "no");
+               printf("\tDHCP = %s\n", (at->size == 1 ? *byte : *word) ? "yes" : "no");
                break;
        
        case ATTR_FIRM_VER: