diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c
index 7d56576498c..1923d177515 100644
--- a/contrib/postgres_fdw/connection.c
+++ b/contrib/postgres_fdw/connection.c
@@ -674,8 +674,8 @@ disconnect_pg_server(ConnCacheEntry *entry)
 }
 
 /*
- * Return true if the password_required is defined and false for this user
- * mapping, otherwise false. The mapping has been pre-validated.
+ * Return false if the password_required is defined and false for this user
+ * mapping, otherwise true. The mapping has been pre-validated.
  */
 static bool
 UserMappingPasswordRequired(UserMapping *user)
