summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dahdi_maint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dahdi_maint.c b/dahdi_maint.c
index 829d4ea..9ee4133 100644
--- a/dahdi_maint.c
+++ b/dahdi_maint.c
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
if (!(doloopback || iflag || gflag || rflag)) {
s.spanno = span;
res = ioctl(ctl, DAHDI_SPANSTAT, &s);
- if (res)
+ if (res || ((__u32)-1 == s.fecount))
printf("Error counters not supported by the driver"\
" for this span\n");
printf("Span %d:\n", span);