]> andersk Git - libfaim.git/blobdiff - aim_rxhandlers.c
- Wed Nov 8 13:11:18 UTC 2000
[libfaim.git] / aim_rxhandlers.c
index 4f5cf74c8b78899a22a17618b7d0d9abd72679b2..220394f2abf907ce6a8aa264b42caf83449a0555 100644 (file)
@@ -343,16 +343,17 @@ faim_export int aim_rxdispatch(struct aim_session_t *sess)
        workingPtr->handled = 1;
        break;
       case AIM_CONN_TYPE_AUTH: {
-       u_long head;
+       unsigned long head;
        
        head = aimutil_get32(workingPtr->data);
-       if (head == 0x00000001) {
+       if ((head == 0x00000001) && (workingPtr->commandlen == 4)) {
          faimdprintf(1, "got connection ack on auth line\n");
          workingPtr->handled = 1;
-       } else if (workingPtr->hdr.oscar.type == 0x0004) {
+       } else if (workingPtr->hdr.oscar.type == 0x04) {
+         /* Used only by the older login protocol */
          workingPtr->handled = aim_authparse(sess, workingPtr);
         } else {
-         u_short family,subtype;
+         unsigned short family,subtype;
          
          family = aimutil_get16(workingPtr->data);
          subtype = aimutil_get16(workingPtr->data+2);
This page took 0.166227 seconds and 4 git commands to generate.