aboutsummaryrefslogtreecommitdiffstats
path: root/src/isup.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-19 09:43:01 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 11:49:39 +0100
commita4661fb228a5cfee262410c38c12afa610f0942f (patch)
treee1a9a05228ff1414b360872062694b0cbb503b1a /src/isup.c
parentb4dd0296323db430bd517d0527a7efbf840fc9c0 (diff)
isup: Fix the lebgth check in this packet
Diffstat (limited to 'src/isup.c')
-rw-r--r--src/isup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/isup.c b/src/isup.c
index 6e9e359..d57cb7a 100644
--- a/src/isup.c
+++ b/src/isup.c
@@ -67,7 +67,7 @@ int isup_parse_grs(const uint8_t *data, uint8_t in_length)
uint8_t ptr;
uint8_t length;
- if (in_length > 3) {
+ if (in_length < 3) {
LOGP(DISUP, LOGL_ERROR, "This needs three bytes.\n");
return -1;
}