Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 19:11:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239520 - stable/9/lib/libpam/modules/pam_krb5
Message-ID:  <201208211911.q7LJBC1U089139@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Aug 21 19:11:12 2012
New Revision: 239520
URL: http://svn.freebsd.org/changeset/base/239520

Log:
  MFC r239099:
  
  Fix two instances in pam_krb5(8), where the variable 'princ_name' could
  be used uninitialized.
  
  Found by:	clang 3.2
  Reviewed by:	des

Modified:
  stable/9/lib/libpam/modules/pam_krb5/pam_krb5.c
Directory Properties:
  stable/9/lib/libpam/   (props changed)

Modified: stable/9/lib/libpam/modules/pam_krb5/pam_krb5.c
==============================================================================
--- stable/9/lib/libpam/modules/pam_krb5/pam_krb5.c	Tue Aug 21 19:07:28 2012	(r239519)
+++ stable/9/lib/libpam/modules/pam_krb5/pam_krb5.c	Tue Aug 21 19:11:12 2012	(r239520)
@@ -320,11 +320,11 @@ cleanup:
 	PAM_LOG("Done cleanup");
 cleanup2:
 	krb5_free_principal(pam_context, princ);
-	PAM_LOG("Done cleanup2");
-cleanup3:
 	if (princ_name)
 		free(princ_name);
+	PAM_LOG("Done cleanup2");
 
+cleanup3:
 	krb5_free_context(pam_context);
 
 	PAM_LOG("Done cleanup3");
@@ -779,11 +779,11 @@ cleanup:
 	PAM_LOG("Done cleanup");
 cleanup2:
 	krb5_free_principal(pam_context, princ);
-	PAM_LOG("Done cleanup2");
-cleanup3:
 	if (princ_name)
 		free(princ_name);
+	PAM_LOG("Done cleanup2");
 
+cleanup3:
 	krb5_free_context(pam_context);
 
 	PAM_LOG("Done cleanup3");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208211911.q7LJBC1U089139>