diff options
author | paul <paul> | 2005-05-19 01:37:50 +0000 |
---|---|---|
committer | paul <paul> | 2005-05-19 01:37:50 +0000 |
commit | 2ba9a37add807b1fbd103424b1365fac8fb2b78f (patch) | |
tree | 5b9143db0816baf0a02db384c6dab0dcde5dda6d | |
parent | dc81807a5b2b3dc8138d74e23ece71402a6c03b4 (diff) |
2005-05-19 Paul Jakma <paul@dishone.st>
* sockunion.c: (sockunion_getsockname) use MTYPE_SOCKUNION, not TMP
(sockunion_getpeername) ditto
-rw-r--r-- | lib/ChangeLog | 2 | ||||
-rw-r--r-- | lib/sockunion.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 82ea6fd1..3b836048 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -3,6 +3,8 @@ * thread.c: (thread_cancel_event) the number of pending events cancelled is potentially useful information, dont throw it away, pass it back to the caller. + * sockunion.c: (sockunion_getsockname) use MTYPE_SOCKUNION, not TMP + (sockunion_getpeername) ditto 2005-05-15 Paul Jakma <paul@dishone.st> diff --git a/lib/sockunion.c b/lib/sockunion.c index a636c641..e79f034c 100644 --- a/lib/sockunion.c +++ b/lib/sockunion.c @@ -582,14 +582,14 @@ sockunion_getsockname (int fd) if (name.sa.sa_family == AF_INET) { - su = XCALLOC (MTYPE_TMP, sizeof (union sockunion)); + su = XCALLOC (MTYPE_SOCKUNION, sizeof (union sockunion)); memcpy (su, &name, sizeof (struct sockaddr_in)); return su; } #ifdef HAVE_IPV6 if (name.sa.sa_family == AF_INET6) { - su = XCALLOC (MTYPE_TMP, sizeof (union sockunion)); + su = XCALLOC (MTYPE_SOCKUNION, sizeof (union sockunion)); memcpy (su, &name, sizeof (struct sockaddr_in6)); if (IN6_IS_ADDR_V4MAPPED (&su->sin6.sin6_addr)) @@ -636,14 +636,14 @@ sockunion_getpeername (int fd) if (name.sa.sa_family == AF_INET) { - su = XCALLOC (MTYPE_TMP, sizeof (union sockunion)); + su = XCALLOC (MTYPE_SOCKUNION, sizeof (union sockunion)); memcpy (su, &name, sizeof (struct sockaddr_in)); return su; } #ifdef HAVE_IPV6 if (name.sa.sa_family == AF_INET6) { - su = XCALLOC (MTYPE_TMP, sizeof (union sockunion)); + su = XCALLOC (MTYPE_SOCKUNION, sizeof (union sockunion)); memcpy (su, &name, sizeof (struct sockaddr_in6)); if (IN6_IS_ADDR_V4MAPPED (&su->sin6.sin6_addr)) |