Bug 10348
Summary: | Device name set to null when renew fails | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Olivier Baudron <olivier.baudron> | ||||
Component: | pump | Assignee: | Erik Troan <ewt> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2000-08-02 23:44:57 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Olivier Baudron
2000-03-26 01:03:54 UTC
This patch fixed the bug: --- pump-0.7.8/dhcp.c Tue Feb 15 21:59:11 2000 +++ pump-0.7.8-fixed/dhcp.c Sun Mar 26 03:58:20 2000 @@ -1085,6 +1085,7 @@ char * pumpDhcpRun(char * device, int flags, int reqLease, char * reqHostname, struct pumpNetIntf * intf, struct pumpOverrideInfo * override) { + char device_save[10]; int s, i; struct sockaddr_in serverAddr; struct sockaddr_in clientAddr; @@ -1099,8 +1100,9 @@ int numOptions; short aShort; + strcpy(device_save, device); memset(intf, 0, sizeof(*intf)); - strcpy(intf->device, device); + strcpy(intf->device, device_save); intf->reqLease = reqLease; intf->set |= PUMP_INTFINFO_HAS_REQLEASE; In my first report, it should read: intf->device points to an empty string instead of: intf->device is NULL. The problem persists with pump-0.7.11-2 At last, my ISP fixed his renewal buggy address, so I tried the following: #~ pump -l 1 then I pulled the ethernet cable two minutes before renewal. In the log, pump output the same error message telling that it did not find the empty module '.o' It seems that the code changed quite a lot between 0.7.8-1 and 0.7.11-2, so I cannot propose a patch for now... Created attachment 1874 [details]
fix pb with pump if renewal server is unreachable
Applied, thanks! |