diff mbox

[12/12] libnsdb: Use correct LDAP attribute name to set FslPort

Message ID 20111213225245.15402.64916.stgit@degas.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever Dec. 13, 2011, 10:52 p.m. UTC
After using nsdb_create_fsls_s() to create an FSL record, the
fedfsNsdbPort field contained the value for the fedfsFslPort
field.  This was never exposed before because the nsdb-create_fsl
tool sets both attributes to zero.

Introduced by commit 0520ee72: "Initial commit," (March 29, 2011).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 src/libnsdb/administrator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/src/libnsdb/administrator.c b/src/libnsdb/administrator.c
index 40b3652..15db8ac 100644
--- a/src/libnsdb/administrator.c
+++ b/src/libnsdb/administrator.c
@@ -619,7 +619,7 @@  nsdb_create_nfs_fsl_entry_s(LDAP *ld, const char *nce, struct fedfs_fsl *fsl,
 				servernamevals, fsl->fl_fslhost);
 	if (fsl->fl_fslport != 0) {
 		sprintf(serverportbuf, "%d", fsl->fl_fslport);
-		nsdb_init_add_attribute(attrs[i++], "fedfsNsdbPort",
+		nsdb_init_add_attribute(attrs[i++], "fedfsFslPort",
 					serverportvals, serverportbuf);
 	}
 	sprintf(ttybuf, "%d", fsl->fl_fslttl);