Sfoglia il codice sorgente

Fixing small bug in detecting if is a vspecific.

AdrianSimionov 10 anni fa
parent
commit
f363adeae3
1 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  1. 2 6
      src/docsis_decode.c

+ 2 - 6
src/docsis_decode.c

@@ -339,12 +339,8 @@ void decode_hexstr (unsigned char *tlvbuf, symbol_type *sym, size_t length )
  }
  printf(";\n");
  if (!strncmp (sym->sym_ident, "VendorIdentifier", 16)) {
-   if (ff != tlvbuf[0]) {
-	   if (ff != tlvbuf[1]) {
-		   if (ff != tlvbuf[2]) {
-			   is_vspecific = TRUE;
-		   }
-	   }
+   if ( (ff != tlvbuf[0]) || (ff != tlvbuf[1]) || (ff != tlvbuf[2]) ) {
+     is_vspecific = TRUE;
    }
  }
  free(helper);