[acassen/keepalived] 0b7852: smtp: fix get_local_name() usage

Alexandre Cassen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <551a5ea4375f6_2293f8f95c9b29c700a5@hookshot-fe4-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: 0b78522c27ea66c603fe9c161d94a3488cce0c2d
      https://github.com/acassen/keepalived/commit/0b78522c27ea66c603fe9c161d94a3488cce0c2d
  Author: Alexandre Cassen <[email protected]>
  Date:   2015-03-31 (Tue, 31 Mar 2015)

  Changed paths:
    M keepalived/core/smtp.c

  Log Message:
  -----------
  smtp: fix get_local_name() usage

Need to release memory if allocated. Use "localhost" as default hostname if
getaddrinfo fails returning one.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.