Split tag handling out of cipher_finish()
diff --git a/library/pkcs5.c b/library/pkcs5.c
index a27d4fb..0b9830d 100644
--- a/library/pkcs5.c
+++ b/library/pkcs5.c
@@ -199,11 +199,8 @@
         goto exit;
     }
 
-    if( ( ret = cipher_finish( &cipher_ctx, output + olen, &olen, NULL, 0 ) )
-                != 0 )
-    {
+    if( ( ret = cipher_finish( &cipher_ctx, output + olen, &olen ) ) != 0 )
         ret = POLARSSL_ERR_PKCS5_PASSWORD_MISMATCH;
-    }
 
 exit:
     md_free_ctx( &md_ctx );