]> source.dussan.org Git - rspamd.git/commitdiff
Add port definition to URL.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 14:59:39 +0000 (15:59 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 10:42:08 +0000 (11:42 +0100)
src/libserver/url.c
src/libserver/url.h

index 5c2bc743728560752355e577ac3769f54e64fe1d..0184453da8e85a8c27300dab2cfb071abdf0f63b 100644 (file)
@@ -1092,6 +1092,8 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len,
                }
        }
 
+       uri->port = u.port;
+
        if (!uri->hostlen) {
                return URI_ERRNO_BAD_FORMAT;
        }
index ce81542116b57b5e7960227f83ff7875cbc9b308..1faead3f2d7ea969bb0f9438a2178845a14bfa66 100644 (file)
@@ -11,11 +11,11 @@ struct mime_text_part;
 struct rspamd_url {
        gchar *string;
        gint protocol;
+       guint port;
 
        gchar *user;
        gchar *password;
        gchar *host;
-       gchar *port;
        gchar *data;
        gchar *query;
        gchar *fragment;