1
0

patch-ctrlpacket_c 882 B

1234567891011121314
  1. --- pptpd-1.3.4.orig/ctrlpacket.c 2005-08-03 11:10:59.000000000 +0200
  2. +++ pptpd-1.3.4/ctrlpacket.c 2010-06-03 14:37:05.610979335 +0200
  3. @@ -377,9 +377,9 @@ void deal_start_ctrl_conn(unsigned char
  4. start_ctrl_conn_rply.bearer_cap = htons(OUR_BEARER);
  5. start_ctrl_conn_rply.max_channels = htons(MAX_CHANNELS);
  6. start_ctrl_conn_rply.firmware_rev = htons(PPTP_FIRMWARE_VERSION);
  7. - bzero(start_ctrl_conn_rply.hostname, MAX_HOSTNAME_SIZE);
  8. + memset(start_ctrl_conn_rply.hostname, 0, MAX_HOSTNAME_SIZE);
  9. strncpy((char *)start_ctrl_conn_rply.hostname, PPTP_HOSTNAME, MAX_HOSTNAME_SIZE);
  10. - bzero(start_ctrl_conn_rply.vendor, MAX_VENDOR_SIZE);
  11. + memset(start_ctrl_conn_rply.vendor, 0, MAX_VENDOR_SIZE);
  12. strncpy((char *)start_ctrl_conn_rply.vendor, PPTP_VENDOR, MAX_VENDOR_SIZE);
  13. COPY_CTRL_PACKET(start_ctrl_conn_rply, rply_packet, rply_size);
  14. DEBUG_PACKET("START CTRL CONN RPLY");