summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-02-13 16:27:09 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-02-13 16:27:09 +1100
commit49f3c0ec47730ea264e2bd1e6ece11167d6384df (patch)
tree49e8aa897f38103b7b8dbfc0b3dd3412a9414c3c
parentb8bbff3b3fc823bf80c5ab226c94f13cb887d5b1 (diff)
Remove assigned-to-but-never-used variable.
'p' was removed in previous change but I neglected to remove the otherwise-unused assignment to it.
-rw-r--r--md5crypt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/md5crypt.c b/md5crypt.c
index 5625fd3cf..52cf2959a 100644
--- a/md5crypt.c
+++ b/md5crypt.c
@@ -139,8 +139,6 @@ md5_crypt(const char *pw, const char *salt)
139 MD5_Final(final, &ctx1); 139 MD5_Final(final, &ctx1);
140 } 140 }
141 141
142 p = passwd + strlen(passwd);
143
144 l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; 142 l = (final[ 0]<<16) | (final[ 6]<<8) | final[12];
145 strlcat(passwd, to64(l, 4), sizeof(passwd)); 143 strlcat(passwd, to64(l, 4), sizeof(passwd));
146 l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; 144 l = (final[ 1]<<16) | (final[ 7]<<8) | final[13];