diff options
author | Martin Willi <martin@strongswan.org> | 2008-07-04 06:58:04 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-07-04 06:58:04 +0000 |
commit | 4302d4f0120cebe54c90ae7ecf55a90f641eb105 (patch) | |
tree | 5caea5a8a49351118c99700c9b7bfe000a9592e4 /src/dumm/cowfs.c | |
parent | 60721cee7354bfac985fe9403da25af6a5a3a924 (diff) | |
download | strongswan-4302d4f0120cebe54c90ae7ecf55a90f641eb105.tar.bz2 strongswan-4302d4f0120cebe54c90ae7ecf55a90f641eb105.tar.xz |
some stability improvements
Diffstat (limited to 'src/dumm/cowfs.c')
-rw-r--r-- | src/dumm/cowfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dumm/cowfs.c b/src/dumm/cowfs.c index 4c16c7c5d..f7984635a 100644 --- a/src/dumm/cowfs.c +++ b/src/dumm/cowfs.c @@ -858,13 +858,15 @@ cowfs_t *cowfs_create(char *master, char *host, char *mount) { DBG1("failed to open master filesystem '%s'", master); free(this); + return NULL; } this->host_fd = open(host, O_RDONLY | O_DIRECTORY); - if (this->master_fd < 0) + if (this->host_fd < 0) { DBG1("failed to open host filesystem '%s'", host); close(this->master_fd); free(this); + return NULL; } this->over_fd = -1; |