ldb: Correct copy‐and‐pasted comments
authorJo Sutton <josutton@catalyst.net.nz>
Mon, 12 Feb 2024 22:54:57 +0000 (11:54 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
These comments refer to controls being added, but in these functions the
controls are actually being *searched* for.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/include/ldb.h

index dd6c9aa54c9e7ab156e7ff5e24eaa6b68d941937..1f0e6abf5590e066b3bcde7532b3ebec63a86177 100644 (file)
@@ -1344,7 +1344,7 @@ int ldb_request_replace_control(struct ldb_request *req, const char *oid, bool c
 
 /**
    check if a control with the specified "oid" exist and return it
-  \param req the request struct where to add the control
+  \param req the request struct to search for the control
   \param oid the object identifier of the control as string
 
   \return the control, NULL if not found
@@ -1353,7 +1353,7 @@ struct ldb_control *ldb_request_get_control(struct ldb_request *req, const char
 
 /**
    check if a control with the specified "oid" exist and return it
-  \param rep the reply struct where to add the control
+  \param rep the reply struct to search for the control
   \param oid the object identifier of the control as string
 
   \return the control, NULL if not found