cbf38fbdef8a02a7803a8c28c4fcfb198b540344
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c
index 0933032..d3f0920 100644
--- a/libsoup/soup-cookie.c
+++ b/libsoup/soup-cookie.c
@@ -142,6 +142,12 @@ soup_cookie_get_type (void)
 	return type_volatile;
 }
 
+/**
+ * soup_cookie_copy:
+ * @cookie: a #SoupCookie
+ *
+ * Copies @cookie.
+ **/
 SoupCookie *
 soup_cookie_copy (const SoupCookie *cookie)
 {
@@ -926,6 +932,9 @@ gboolean
 soup_cookie_equal (const SoupCookie *cookie1,
 		   const SoupCookie *cookie2)
 {
+	g_return_val_if_fail (cookie1, FALSE);
+	g_return_val_if_fail (cookie2, FALSE);
+
 	return (!strcmp (cookie1->name, cookie2->name) &&
 		!strcmp (cookie1->value, cookie2->value) &&
 		!strcmp (cookie1->path, cookie2->path));
diff --git a/libsoup/soup-cookie.h b/libsoup/soup-cookie.h
index a11d19e..1697338 100644
--- a/libsoup/soup-cookie.h
+++ b/libsoup/soup-cookie.h
@@ -60,6 +60,7 @@ void        soup_cookies_to_response         (GSList           *cookies,
 					      SoupMessage      *msg);
 void        soup_cookies_to_request          (GSList           *cookies,
 					      SoupMessage      *msg);
+SoupCookie *soup_cookie_copy                 (const SoupCookie *cookie);
 void        soup_cookies_free                (GSList           *cookies);
 char       *soup_cookies_to_cookie_header    (GSList           *cookies);
 gboolean    soup_cookie_applies_to_uri       (SoupCookie       *cookie,
