1
1
openmpi/opal/mca/if
Jeff Squyres 650dd3e4cf opal/if/linux_ipv6: unify gethostname() call behavior
Unfortunately, https://github.com/open-mpi/ompi/pull/6797 was merged
before all feedback was received (39b799d936).  This PR is a minor
addendum to that commit.

This PR simply removes a meaningless `= {0}` operation.

The use of gethostname() here -- and many other places in the code
base -- is technically unsafe.  See
https://github.com/open-mpi/ompi/issues/6801 for a further description
of the issue and a suggested fix.  But the risk is quite low;
real-world hostnames are usually much shorter than
OPAL_MAXHOSTNAMELEN.  Hence, this PR just removes the meaningless
operation and leaves a real fix for gethostname() usage to a potential
future PR.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
2019-07-09 10:38:24 -07:00
..
base opal/if: open the if framework once in opal_init_util 2016-12-01 14:24:30 +09:00
bsdx_ipv4 opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
bsdx_ipv6 Merge pull request #5786 from jsquyres/pr/string-madness 2018-10-04 16:12:46 -05:00
linux_ipv6 opal/if/linux_ipv6: unify gethostname() call behavior 2019-07-09 10:38:24 -07:00
posix_ipv4 opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
solaris_ipv6 opal: convert from strncpy() -> opal_string_copy() 2018-09-27 11:56:18 -07:00
if.h opal: Remove outdated MacOS workaround 2018-10-02 13:35:46 -04:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00