mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-16 11:34:14 +00:00
[lib/sockunion] trivial: use XSTRDUP.
2006-02-21 Paul Jakma <paul.jakma@sun.com> * sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP. Particularly with _su2str, as that string gets XFREEd, which can be annoying if run debug code in memory.c.
This commit is contained in:
parent
316f787179
commit
15e2aa43c5
@ -1,3 +1,9 @@
|
||||
2006-02-21 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP.
|
||||
Particularly with _su2str, as that string gets XFREEd,
|
||||
which can be annoying if run debug code in memory.c.
|
||||
|
||||
2006-02-02 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* workqueue.h: (struct work_queue) Remove the delay field.
|
||||
|
@ -224,7 +224,7 @@ sockunion_su2str (union sockunion *su)
|
||||
break;
|
||||
#endif /* HAVE_IPV6 */
|
||||
}
|
||||
return strdup (str);
|
||||
return XSTRDUP (MTYPE_TMP, str);
|
||||
}
|
||||
|
||||
/* Return socket of sockunion. */
|
||||
@ -314,7 +314,7 @@ sockunion_log (union sockunion *su)
|
||||
snprintf (buf, SU_ADDRSTRLEN, "af_unknown %d ", su->sa.sa_family);
|
||||
break;
|
||||
}
|
||||
return (strdup (buf));
|
||||
return (XSTRDUP (MTYPE_TMP, buf));
|
||||
}
|
||||
|
||||
/* sockunion_connect returns
|
||||
|
Loading…
Reference in New Issue
Block a user