Patchwork [10/13] libnsdb: Fix string displayed for invalid security types

login
register
mail settings
Submitter Chuck Lever
Date Jan. 8, 2013, 5:28 p.m.
Message ID <20130108172834.65133.44130.stgit@seurat.1015granger.net>
Download mbox | patch
Permalink /patch/210457/
State Accepted
Headers show

Comments

Chuck Lever - Jan. 8, 2013, 5:28 p.m.
nsdb_display_fedfsconnectionsec() displays security types, not error
codes.

This has been incorrect since commit 0520ee72 "Initial commit", Tue
Mar 29 15:37:40 2011.

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

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

Patch

diff --git a/src/libnsdb/display.c b/src/libnsdb/display.c
index d5e9763..eb15ed6 100644
--- a/src/libnsdb/display.c
+++ b/src/libnsdb/display.c
@@ -48,7 +48,7 @@  nsdb_display_fedfsconnectionsec(const FedFsConnectionSec sectype)
 	default:
 		break;
 	}
-	return "an unrecognized error code";
+	return "unrecognized security type";
 }
 
 /**