summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/popa3d/virtual.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/popa3d/virtual.c b/usr.sbin/popa3d/virtual.c
index 0d4da4f43aa..3ec70d7d535 100644
--- a/usr.sbin/popa3d/virtual.c
+++ b/usr.sbin/popa3d/virtual.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtual.c,v 1.4 2003/04/02 00:07:53 deraadt Exp $ */
+/* $OpenBSD: virtual.c,v 1.5 2003/06/19 07:21:20 pvalchev Exp $ */
/*
* Virtual domain support.
@@ -117,7 +117,10 @@ struct passwd *virtual_userpass(char *user, char *pass, int *known)
return NULL;
}
- if (!(address = strdup(address))) return NULL;
+ if (!(address = strdup(address))) {
+ free(pathname);
+ return NULL;
+ }
virtual_domain = address;
free(pathname);