[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/session.c between version 1.270 and 1.271

version 1.270, 2014/01/31 16:39:19 version 1.271, 2014/03/03 22:22:30
Line 871 
Line 871 
         u_int envsize;          u_int envsize;
         u_int i, namelen;          u_int i, namelen;
   
           if (strchr(name, '=') != NULL) {
                   error("Invalid environment variable \"%.100s\"", name);
                   return;
           }
   
         /*          /*
          * Find the slot where the value should be stored.  If the variable           * Find the slot where the value should be stored.  If the variable
          * already exists, we reuse the slot; otherwise we append a new slot           * already exists, we reuse the slot; otherwise we append a new slot
Line 1858 
Line 1863 
         char *name, *val;          char *name, *val;
         u_int name_len, val_len, i;          u_int name_len, val_len, i;
   
         name = packet_get_string(&name_len);          name = packet_get_cstring(&name_len);
         val = packet_get_string(&val_len);          val = packet_get_cstring(&val_len);
         packet_check_eom();          packet_check_eom();
   
         /* Don't set too many environment variables */          /* Don't set too many environment variables */

Legend:
Removed from v.1.270  
changed lines
  Added in v.1.271