CVS: beepcore-java/src/org/beepcore/beep/profile/sasl/otp SASLOTPProfile.java,1.13,1.14

Huston Franklin <[email protected]> Thu, 30 Oct 2003 06:32:59 -0800
Newsgroups gmane.network.beep.beepcore.java.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/sasl/otp
In directory sc8-pr-cvs1:/tmp/cvs-serv598/src/org/beepcore/beep/profile/sasl/otp

Modified Files:
	SASLOTPProfile.java 
Log Message:
Cleanup

Index: SASLOTPProfile.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/sasl/otp/SASLOTPProfile.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** SASLOTPProfile.java	15 Sep 2003 15:23:31 -0000	1.13
--- SASLOTPProfile.java	30 Oct 2003 14:32:57 -0000	1.14
***************
*** 317,332 ****
              synchronized (auth) {
                  auth.wait();
- 
-                 SessionCredential cred = session.getLocalCredential();
- 
-                 if (cred == null) {
-                     auth.abort("Authentication Failed");
-                 } else {
-                     success = true;
-                 }
              }
          } catch (Exception x) {
              auth.abort(x.getMessage());
          }
          return session;
      }
--- 317,333 ----
              synchronized (auth) {
                  auth.wait();
              }
          } catch (Exception x) {
              auth.abort(x.getMessage());
          }
+ 
+         SessionCredential cred = session.getLocalCredential();
+ 
+         if (cred == null) {
+             auth.abort("Authentication Failed");
+         } else {
+             success = true;
+         }
+ 
          return session;
      }



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/