diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2014-01-26 23:39:11 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2014-01-26 23:39:11 +0000 |
commit | 932f20d9d25e87afa88ae9b1d943d25d8083aae5 (patch) | |
tree | dca7113a5d1aa5eece8c4ac216e345862af0c5f2 /contrib/sendmail/libsmdb | |
parent | 631dcff5854868ecf95268f05bcd279ddaa4a5fb (diff) | |
parent | b649239dd2089ab83c5d6ed19420ee7c788f8647 (diff) | |
download | FreeBSD-src-932f20d9d25e87afa88ae9b1d943d25d8083aae5.zip FreeBSD-src-932f20d9d25e87afa88ae9b1d943d25d8083aae5.tar.gz |
Merge sendmail 8.14.8 to HEAD
MFC after: 5 days
Diffstat (limited to 'contrib/sendmail/libsmdb')
-rw-r--r-- | contrib/sendmail/libsmdb/smdb.c | 4 | ||||
-rw-r--r-- | contrib/sendmail/libsmdb/smdb1.c | 4 | ||||
-rw-r--r-- | contrib/sendmail/libsmdb/smdb2.c | 6 | ||||
-rw-r--r-- | contrib/sendmail/libsmdb/smndbm.c | 9 |
4 files changed, 15 insertions, 8 deletions
diff --git a/contrib/sendmail/libsmdb/smdb.c b/contrib/sendmail/libsmdb/smdb.c index 6eb4033..8442246 100644 --- a/contrib/sendmail/libsmdb/smdb.c +++ b/contrib/sendmail/libsmdb/smdb.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 1999-2002 Sendmail, Inc. and its suppliers. +** Copyright (c) 1999-2002 Proofpoint, Inc. and its suppliers. ** All rights reserved. ** ** By using this file, you agree to the terms and conditions set @@ -8,7 +8,7 @@ */ #include <sm/gen.h> -SM_RCSID("@(#)$Id: smdb.c,v 8.58 2004/08/03 20:58:38 ca Exp $") +SM_RCSID("@(#)$Id: smdb.c,v 8.59 2013/11/22 20:51:49 ca Exp $") #include <fcntl.h> #include <stdlib.h> diff --git a/contrib/sendmail/libsmdb/smdb1.c b/contrib/sendmail/libsmdb/smdb1.c index 842d4b2..2bd9ce0 100644 --- a/contrib/sendmail/libsmdb/smdb1.c +++ b/contrib/sendmail/libsmdb/smdb1.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 1999-2002, 2004, 2009 Sendmail, Inc. and its suppliers. +** Copyright (c) 1999-2002, 2004, 2009 Proofpoint, Inc. and its suppliers. ** All rights reserved. ** ** By using this file, you agree to the terms and conditions set @@ -8,7 +8,7 @@ */ #include <sm/gen.h> -SM_RCSID("@(#)$Id: smdb1.c,v 8.62 2009/11/12 23:04:18 ca Exp $") +SM_RCSID("@(#)$Id: smdb1.c,v 8.63 2013/11/22 20:51:49 ca Exp $") #include <unistd.h> #include <stdlib.h> diff --git a/contrib/sendmail/libsmdb/smdb2.c b/contrib/sendmail/libsmdb/smdb2.c index 1580661..12e4192 100644 --- a/contrib/sendmail/libsmdb/smdb2.c +++ b/contrib/sendmail/libsmdb/smdb2.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 1999-2003, 2009 Sendmail, Inc. and its suppliers. +** Copyright (c) 1999-2003, 2009 Proofpoint, Inc. and its suppliers. ** All rights reserved. ** ** By using this file, you agree to the terms and conditions set @@ -8,7 +8,7 @@ */ #include <sm/gen.h> -SM_RCSID("@(#)$Id: smdb2.c,v 8.80 2009/11/12 23:07:49 ca Exp $") +SM_RCSID("@(#)$Id: smdb2.c,v 8.83 2013/11/22 20:51:49 ca Exp $") #include <fcntl.h> #include <stdlib.h> @@ -625,6 +625,8 @@ smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, db_params { smdb_unlock_file(lock_fd); smdb_free_database(smdb_db); /* ok to be NULL */ + if (db2 != NULL) + free(db2); return SMDBE_MALLOC; } diff --git a/contrib/sendmail/libsmdb/smndbm.c b/contrib/sendmail/libsmdb/smndbm.c index 89ecf63..4ea6e58 100644 --- a/contrib/sendmail/libsmdb/smndbm.c +++ b/contrib/sendmail/libsmdb/smndbm.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 1999-2002 Sendmail, Inc. and its suppliers. +** Copyright (c) 1999-2002 Proofpoint, Inc. and its suppliers. ** All rights reserved. ** ** By using this file, you agree to the terms and conditions set @@ -8,7 +8,7 @@ */ #include <sm/gen.h> -SM_RCSID("@(#)$Id: smndbm.c,v 8.52 2002/05/21 22:30:30 gshapiro Exp $") +SM_RCSID("@(#)$Id: smndbm.c,v 8.55 2013/11/22 20:51:49 ca Exp $") #include <fcntl.h> #include <stdlib.h> @@ -438,13 +438,18 @@ smdbm_cursor(database, cursor, flags) db->smndbm_cursor_in_use = true; dbm_cursor = (SMDB_DBM_CURSOR *) malloc(sizeof(SMDB_DBM_CURSOR)); + if (dbm_cursor == NULL) + return SMDBE_MALLOC; dbm_cursor->smndbmc_db = db; dbm_cursor->smndbmc_current_key.dptr = NULL; dbm_cursor->smndbmc_current_key.dsize = 0; cur = (SMDB_CURSOR*) malloc(sizeof(SMDB_CURSOR)); if (cur == NULL) + { + free(dbm_cursor); return SMDBE_MALLOC; + } cur->smdbc_impl = dbm_cursor; cur->smdbc_close = smdbm_cursor_close; |