The order of enums in the lm-message.h and lm-message.c for the stream:error and stream:features message types was transposed, leading to inaccurate identification of those two types.
authorKirk Haines <khaines@engineyard.com>
Tue, 17 Feb 2009 11:22:22 -0700
changeset 583 dfe3688d71c9
parent 582 e25522f3c098
child 584 96b31c822ab8
The order of enums in the lm-message.h and lm-message.c for the stream:error and stream:features message types was transposed, leading to inaccurate identification of those two types.
loudmouth/lm-message.c
--- a/loudmouth/lm-message.c	Thu Jan 29 09:15:05 2009 -0600
+++ b/loudmouth/lm-message.c	Tue Feb 17 11:22:22 2009 -0700
@@ -43,8 +43,8 @@
     { LM_MESSAGE_TYPE_PRESENCE,        "presence"        },
     { LM_MESSAGE_TYPE_IQ,              "iq"              },
     { LM_MESSAGE_TYPE_STREAM,          "stream:stream"   },
+    { LM_MESSAGE_TYPE_STREAM_ERROR,    "stream:error"    },
     { LM_MESSAGE_TYPE_STREAM_FEATURES, "stream:features" },
-    { LM_MESSAGE_TYPE_STREAM_ERROR,    "stream:error"    },
     { LM_MESSAGE_TYPE_AUTH,            "auth"            },
     { LM_MESSAGE_TYPE_CHALLENGE,       "challenge"       },
     { LM_MESSAGE_TYPE_RESPONSE,        "response"        },