diff options
Diffstat (limited to 'src/libplumb/fid.c')
-rw-r--r-- | src/libplumb/fid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libplumb/fid.c b/src/libplumb/fid.c index ec133c82..017f92c3 100644 --- a/src/libplumb/fid.c +++ b/src/libplumb/fid.c @@ -138,6 +138,10 @@ plumbrecvfid(CFid *fid) Plumbmsg *m; int n, more; + if(fid == nil){ + werrstr("invalid fid"); + return nil; + } buf = malloc(8192); if(buf == nil) return nil; |