patch-ctrlpacket_c 916 B

123456789101112131415
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- pptpd-1.3.0.orig/ctrlpacket.c 2004-04-29 08:58:45.000000000 +0200
  3. +++ pptpd-1.3.0/ctrlpacket.c 2008-10-14 13:43:14.000000000 +0200
  4. @@ -376,9 +376,9 @@ void deal_start_ctrl_conn(unsigned char
  5. start_ctrl_conn_rply.bearer_cap = htons(OUR_BEARER);
  6. start_ctrl_conn_rply.max_channels = htons(MAX_CHANNELS);
  7. start_ctrl_conn_rply.firmware_rev = htons(PPTP_FIRMWARE_VERSION);
  8. - bzero(start_ctrl_conn_rply.hostname, MAX_HOSTNAME_SIZE);
  9. + memset(start_ctrl_conn_rply.hostname, 0, MAX_HOSTNAME_SIZE);
  10. strncpy(start_ctrl_conn_rply.hostname, PPTP_HOSTNAME, MAX_HOSTNAME_SIZE);
  11. - bzero(start_ctrl_conn_rply.vendor, MAX_VENDOR_SIZE);
  12. + memset(start_ctrl_conn_rply.vendor, 0, MAX_VENDOR_SIZE);
  13. strncpy(start_ctrl_conn_rply.vendor, PPTP_VENDOR, MAX_VENDOR_SIZE);
  14. COPY_CTRL_PACKET(start_ctrl_conn_rply, rply_packet, rply_size);
  15. DEBUG_PACKET("START CTRL CONN RPLY");