[openssh-commits] [openssh] 01/01: Remove assigned-to-but-never-used variable.

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Feb 13 16:28:32 AEDT 2018


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 49f3c0ec47730ea264e2bd1e6ece11167d6384df
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Tue Feb 13 16:27:09 2018 +1100

    Remove assigned-to-but-never-used variable.
    
    'p' was removed in previous change but I neglected to remove the
    otherwise-unused assignment to it.
---
 md5crypt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/md5crypt.c b/md5crypt.c
index 5625fd3c..52cf2959 100644
--- a/md5crypt.c
+++ b/md5crypt.c
@@ -139,8 +139,6 @@ md5_crypt(const char *pw, const char *salt)
 		MD5_Final(final, &ctx1);
 	}
 
-	p = passwd + strlen(passwd);
-
 	l = (final[ 0]<<16) | (final[ 6]<<8) | final[12];
 	strlcat(passwd, to64(l, 4), sizeof(passwd));
 	l = (final[ 1]<<16) | (final[ 7]<<8) | final[13];

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list