diff options
Diffstat (limited to 'src/lib9pclient')
-rw-r--r-- | src/lib9pclient/dirread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib9pclient/dirread.c b/src/lib9pclient/dirread.c index 540cfc6b..2d111917 100644 --- a/src/lib9pclient/dirread.c +++ b/src/lib9pclient/dirread.c @@ -90,8 +90,11 @@ fsdirreadall(CFid *fid, Dir **d) break; ts += n; } - if(ts >= 0) + if(ts >= 0){ ts = dirpackage(buf, ts, d); + if(ts < 0) + werrstr("malformed directory contents"); + } free(buf); if(ts == 0 && n < 0) return -1; |