summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Telka <marcel.telka@nexenta.com>2014-06-04 22:15:35 +0200
committerRobert Mustacchi <rm@joyent.com>2014-06-13 14:57:48 -0700
commit6020a1b764797bc75c5b6bb622762df54ebc0ff3 (patch)
tree764c8ea84d37812754075b58ce0965d4288ee1a6
parent30beaff42d8240ebf5386e8b7a14e3d137a1631f (diff)
downloadillumos-joyent-6020a1b764797bc75c5b6bb622762df54ebc0ff3.tar.gz
4910 libshare_nfs: Memory leak in fill_security_from_secopts()
Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Serghei Samsi <sscdvp@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/lib/libshare/nfs/libshare_nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libshare/nfs/libshare_nfs.c b/usr/src/lib/libshare/nfs/libshare_nfs.c
index e14a8a0ef7..55a11fd072 100644
--- a/usr/src/lib/libshare/nfs/libshare_nfs.c
+++ b/usr/src/lib/libshare/nfs/libshare_nfs.c
@@ -1150,7 +1150,7 @@ fill_security_from_secopts(struct secinfo *sp, sa_security_t secopts)
* such as RO/RW
*/
if (sp->s_secinfo.sc_rpcnum == AUTH_UNIX)
- continue;
+ break;
/* not AUTH_UNIX */
if (value != NULL) {
sp->s_rootnames = get_rootnames(&sp->s_secinfo,