File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
* is for IP V4 CIDR notation, but prepared for V6: just
4
4
* add the necessary bits where the comments indicate.
5
5
*
6
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.39 2003/03/21 21:54:29 momjian Exp $
6
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.40 2003/03/21 23:18:52 tgl Exp $
7
7
*
8
8
* Jon Postel RIP 16 Oct 1998
9
9
*/
@@ -611,9 +611,8 @@ network_hostmask(PG_FUNCTION_ARGS)
611
611
inet * ip = PG_GETARG_INET_P (0 );
612
612
inet * dst ;
613
613
614
- dst = (inet * ) palloc (VARHDRSZ + sizeof (inet_struct ));
615
614
/* make sure any unused bits are zeroed */
616
- MemSet ( dst , 0 , VARHDRSZ + sizeof (inet_struct ));
615
+ dst = ( inet * ) palloc0 ( VARHDRSZ + sizeof (inet_struct ));
617
616
618
617
if (ip_family (ip ) == AF_INET )
619
618
{
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: builtins.h,v 1.209 2003/03/20 18:58:02 momjian Exp $
10
+ * $Id: builtins.h,v 1.210 2003/03/21 23: 18:51 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -568,6 +568,7 @@ extern Datum network_sup(PG_FUNCTION_ARGS);
568
568
extern Datum network_supeq (PG_FUNCTION_ARGS );
569
569
extern Datum network_network (PG_FUNCTION_ARGS );
570
570
extern Datum network_netmask (PG_FUNCTION_ARGS );
571
+ extern Datum network_hostmask (PG_FUNCTION_ARGS );
571
572
extern Datum network_masklen (PG_FUNCTION_ARGS );
572
573
extern Datum network_broadcast (PG_FUNCTION_ARGS );
573
574
extern Datum network_host (PG_FUNCTION_ARGS );
You can’t perform that action at this time.
0 commit comments