Signed-off-by: Andreas Piesk <[email protected]>
---
 usr/sbin/pkcsconf/pkcsconf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr/sbin/pkcsconf/pkcsconf.c b/usr/sbin/pkcsconf/pkcsconf.c
index b8fcbf2..99158d8 100755
--- a/usr/sbin/pkcsconf/pkcsconf.c
+++ b/usr/sbin/pkcsconf/pkcsconf.c
@@ -467,8 +467,8 @@ main(int argc, char *argv[]){
    if (!flags)  /* If there was no options print the usage statement */
        usage(argv[0]);
 
-   /* Eliminate the ability to specify -I -p -u -P without a slot number */
-   if ( (flags & (CFG_INITIALIZE | CFG_INIT_USER | CFG_SET_USER | CFG_SET_SO))
+   /* Eliminate the ability to specify -I -p -u -P -m without a slot number */
+   if ( (flags & (CFG_INITIALIZE | CFG_INIT_USER | CFG_SET_USER | CFG_SET_SO | 
CFG_MECHANISM_INFO))
             && !(flags & CFG_SLOT)){
       usage(argv[0]);
    }
@@ -515,7 +515,7 @@ main(int argc, char *argv[]){
 
    /* If the user wants to display mechanism info call the function to do so */
    if (flags & CFG_MECHANISM_INFO)
-      if ((rc = display_mechanism_info((flags & CFG_SLOT) ? in_slot : -1)))
+      if ((rc = display_mechanism_info(in_slot)))
         goto done;
 
     /* If the user wants to initialize the card check to see if they passed in
-- 
1.7.1


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to