]> git.dolda2000.com Git - doldaconnect.git/blobdiff - daemon/fnet-dc.c
Fix a segv bug in findsehash.
[doldaconnect.git] / daemon / fnet-dc.c
index 175563b35211abe6bdba7952e07c2e79232a7eea..d45b14489c9afa97d12aaacb0d31b985d2d1d680 100644 (file)
@@ -2427,8 +2427,10 @@ static struct hash *findsehash(struct sexpr *sexpr)
            return(h1);
        break;
     case SOP_OR:
-       h1 = findsehash(sexpr->l);
-       h2 = findsehash(sexpr->r);
+       if((h1 = findsehash(sexpr->l)) == NULL)
+           return(NULL);
+       if((h2 = findsehash(sexpr->r)) == NULL)
+           return(NULL);
        if(hashcmp(h1, h2))
            return(h1);
        break;