diff options
author | Bill Nottingham <notting@redhat.com> | 1999-12-22 16:59:29 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-12-22 16:59:29 +0000 |
commit | c07e6fb56d8464672e5c470293b56da91da4f9f9 (patch) | |
tree | aad70dd0f4ca6294f8cd9286dd6e93e9624d9726 /loader/net.c | |
parent | 970c125eb4cdcf519946dc95623b4c51369a308d (diff) | |
download | anaconda-c07e6fb56d8464672e5c470293b56da91da4f9f9.tar.gz anaconda-c07e6fb56d8464672e5c470293b56da91da4f9f9.tar.xz anaconda-c07e6fb56d8464672e5c470293b56da91da4f9f9.zip |
oops. Don't dereference null pointer.
Diffstat (limited to 'loader/net.c')
-rw-r--r-- | loader/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/net.c b/loader/net.c index 8c4534bb5..e5f73fc9d 100644 --- a/loader/net.c +++ b/loader/net.c @@ -459,7 +459,7 @@ int findHostAndDomain(struct networkDeviceConfig * dev, int flags) { _("Determining host name and domain...")); #ifdef __STANDALONE__ he = gethostbyaddr( (char *) &dev->dev.ip, sizeof (dev->dev.ip), AF_INET); - name = he->h_name; + name = he ? he->h_name : 0; #else name = mygethostbyaddr(inet_ntoa(dev->dev.ip)); #endif |