Improved netbios name decoding

This commit is contained in:
Luca Deri
2017-03-19 23:42:36 +01:00
parent 6a5b380bc7
commit 760d468aca
+3
View File
@@ -50,7 +50,10 @@ int ndpi_netbios_name_interpret(char *in, char *out, u_int out_len) {
} }
*out = ((in[0]-'A')<<4) + (in[1]-'A'); *out = ((in[0]-'A')<<4) + (in[1]-'A');
in += 2; in += 2;
if(isprint(*out))
out++, ret++; out++, ret++;
} }