Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 567906 Details for
Bug 679124
net-fs/nfs-utils-2.3.1-r3 with =sys-libs/musl-1.1.21 - rpc.mountd segmentation fault when NFS clients try to mount network share
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
freeaddrinfo patch
Do-not-pass-null-pointer-to-freeaddrinfo.diff (text/plain), 1.04 KB, created by
Alexander Miroshnichenko
on 2019-03-06 13:33:32 UTC
(
hide
)
Description:
freeaddrinfo patch
Filename:
MIME Type:
Creator:
Alexander Miroshnichenko
Created:
2019-03-06 13:33:32 UTC
Size:
1.04 KB
patch
obsolete
>diff -ur nfs-utils-2.3.1.orig/support/export/client.c nfs-utils-2.3.1.mod/support/export/client.c >--- nfs-utils-2.3.1.orig/support/export/client.c 2017-12-20 18:40:36.000000000 +0300 >+++ nfs-utils-2.3.1.mod/support/export/client.c 2019-03-06 16:14:54.974191027 +0300 >@@ -309,7 +309,8 @@ > init_addrlist(clp, ai); > > out: >- freeaddrinfo(ai); >+ if (ai) >+ freeaddrinfo(ai); > return clp; > } > >diff -ur nfs-utils-2.3.1.orig/utils/mountd/cache.c nfs-utils-2.3.1.mod/utils/mountd/cache.c >--- nfs-utils-2.3.1.orig/utils/mountd/cache.c 2017-12-20 18:40:36.000000000 +0300 >+++ nfs-utils-2.3.1.mod/utils/mountd/cache.c 2019-03-06 16:23:28.829378703 +0300 >@@ -834,7 +834,8 @@ > out: > if (found_path) > free(found_path); >- freeaddrinfo(ai); >+ if (ai) >+ freeaddrinfo(ai); > free(dom); > xlog(D_CALL, "nfsd_fh: found %p path %s", found, found ? found->e_path : NULL); > } >@@ -1364,7 +1365,8 @@ > xlog(D_CALL, "nfsd_export: found %p path %s", found, path ? path : NULL); > if (dom) free(dom); > if (path) free(path); >- freeaddrinfo(ai); >+ if (ai) >+ freeaddrinfo(ai); > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 679124
: 567906 |
572166