diff options
author | Luca Deri <deri@ntop.org> | 2020-06-01 16:36:12 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-06-01 16:36:12 +0200 |
commit | 241af016e9e2a43d24cbdc2378d813ba523f5126 (patch) | |
tree | 2b46d2434e4418abc5adc51c667abdb6026f211b /src/lib/protocols/spotify.c | |
parent | 16dc0ec29e0a6b0e12bcebdc2f5619d5d88da697 (diff) |
Added check for spotify payload lenght
Diffstat (limited to 'src/lib/protocols/spotify.c')
-rw-r--r-- | src/lib/protocols/spotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/spotify.c b/src/lib/protocols/spotify.c index a180a1ea7..d66109016 100644 --- a/src/lib/protocols/spotify.c +++ b/src/lib/protocols/spotify.c @@ -47,7 +47,7 @@ static void ndpi_check_spotify(struct ndpi_detection_module_struct *ndpi_struct, if((packet->udp->source == spotify_port) && (packet->udp->dest == spotify_port)) { - if(payload_len > 2) { + if(payload_len >= 7) { if(memcmp(packet->payload, "SpotUdp", 7) == 0) { NDPI_LOG_INFO(ndpi_struct, "found spotify udp dissector\n"); ndpi_int_spotify_add_connection(ndpi_struct, flow, 0); |