* Re: [devel] [git update] packages/propagator: heads/master
@ 2007-09-19 3:57 ` Slava Semushin
0 siblings, 0 replies; only message in thread
From: Slava Semushin @ 2007-09-19 3:57 UTC (permalink / raw)
To: ALT Devel discussion list
2007/9/19, Sergey Bolshakov <sbolshakov / altlinux.org>:
> Update of /people/sbolshakov/packages/propagator.git
[...]
> + case BOOTP_OPTION_ROOTPATH:
> + memcpy(tmp_str, chptr, length);
> + tmp_str[length] = '\0';
> + rootpath = strdup(tmp_str);
> + log_message("got next-server: %s rootpath: %s", inet_ntoa(next_server), rootpath);
> + break;
[...]
> + if (next_server.s_addr && rootpath != NULL) {
> + log_message("Using params supplied by DHCP");
> + nfsmount_location = malloc(strlen(rootpath) + 17);
> + strcpy(nfsmount_location, inet_ntoa(next_server));
> + strcat(nfsmount_location, ":");
> + strcat(nfsmount_location, rootpath);
> + } else {
[...]
Я, возможно, что-то не понимаю, но думаю, что здесь, перед else,
нехватает free(rootpath).
Да/нет?
--
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru
^ permalink raw reply [flat|nested] only message in thread