]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix typos in comments and errormessages
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 20 Apr 2020 08:05:28 +0000 (10:05 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 20 Apr 2020 08:12:22 +0000 (10:12 +0200)
This fixes a few randomly spotted typos in recently merged code, most
notably one in a userfacing errormessage the schannel code.

lib/mqtt.h
lib/smtp.c
lib/vtls/schannel.c

index 155fbd60a37ac2383416da5ac1ad3fe4e4675249..41f7372cedc2ab96749ea2a4c21203dda4965208 100644 (file)
@@ -50,7 +50,7 @@ struct MQTT {
   char *sendleftovers;
   size_t nsend; /* size of sendleftovers */
 
-  /* when receving */
+  /* when receiving */
   size_t npacket; /* byte counter */
   unsigned char firstbyte;
   size_t remaining_length;
index e1872871dcfe7b00d01ada8ef5fa9f829849b25e..93e004d201649c5129c11f6407b097fcbe741c25 100644 (file)
@@ -1741,10 +1741,10 @@ static CURLcode smtp_parse_custom_request(struct connectdata *conn)
  * Notes:
  *
  * Should a UTF-8 host name require conversion to IDN ACE and we cannot honor
- * that convertion then we shall return success. This allow the caller to send
+ * that conversion then we shall return success. This allow the caller to send
  * the data to the server as a U-label (as per RFC-6531 sect. 3.2).
  *
- * If an mailbox '@' seperator cannot be located then the mailbox is considered
+ * If an mailbox '@' separator cannot be located then the mailbox is considered
  * to be either a local mailbox or an invalid mailbox (depending on what the
  * calling function deems it to be) then the input will simply be returned in
  * the address part with the host name being NULL.
@@ -1765,7 +1765,7 @@ static CURLcode smtp_parse_address(struct connectdata *conn, const char *fqma,
   if(dup[length - 1] == '>')
     dup[length - 1] = '\0';
 
-  /* Extract the host name from the addresss (if we can) */
+  /* Extract the host name from the address (if we can) */
   host->name = strpbrk(dup, "@");
   if(host->name) {
     *host->name = '\0';
index 96c1dbc674273d337fcf3dcafe709d175226d9d3..dce6242da6a1fb05b085b8f572dfe50aec9f5cfe 100644 (file)
@@ -679,7 +679,7 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
             CERT_FIND_ANY, NULL, NULL);
 
         if(client_certs[0] == NULL) {
-          failf(data, "schannel: Failed to get certificat from file %s"
+          failf(data, "schannel: Failed to get certificate from file %s"
                 ", last error is 0x%x",
                 data->set.ssl.cert, GetLastError());
           CertCloseStore(cert_store, 0);