diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1997-06-12 18:42:43 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1997-06-12 18:42:43 +0000 |
| commit | f7cf1c1d149d4c8bdc486df79116d8ca36bc6c49 (patch) | |
| tree | ba7046e5f22c3cb1ba8eb24e8e1af4205fa1e93e | |
| parent | 18d5819376635f6f7466a0474dc34669e1de580d (diff) | |
Notes
| -rw-r--r-- | lib/libc/rpc/netnamer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/netnamer.c b/lib/libc/rpc/netnamer.c index 391cc208e0d4..41c514625a9e 100644 --- a/lib/libc/rpc/netnamer.c +++ b/lib/libc/rpc/netnamer.c @@ -292,7 +292,8 @@ getnetid(key, ret) lookup[len] = 0; strcpy(ret, lookup); free(lookup); - fclose(fd); + if (fd != NULL) + fclose(fd); return (2); #else /* YP */ #ifdef DEBUG |
