commit d386fe224c46dbcfeb9c2b71aa533766bee7154b
parent f00cbec38e4c6b619e09cc2596af4d95931fa874
Author: Kris Maglione <bsdaemon@wmii.de>
Date: Thu, 22 Jun 2006 16:35:03 -0400
Fixed a crash when clunking an fid twice
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libixp/request.c b/libixp/request.c
@@ -262,10 +262,12 @@ respond(Req *r, char *error) {
free(r->ifcall.data);
break;
case TREMOVE:
- destroyfid(pc, r->fid->fid);
+ if(r->fid)
+ destroyfid(pc, r->fid->fid);
break;
case TCLUNK:
- destroyfid(pc, r->fid->fid);
+ if(r->fid)
+ destroyfid(pc, r->fid->fid);
if(!pc->conn && r->ifcall.tag == IXP_NOTAG)
pc->ref--;
break;